This commit is contained in:
@@ -35,11 +35,28 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
chmod +x build.sh
|
chmod +x build.sh
|
||||||
./build.sh
|
./build.sh
|
||||||
|
- name: Update Nightly Tag
|
||||||
|
# This moves the 'nightly' tag to the current commit
|
||||||
|
run: |
|
||||||
|
git config user.name "Gitea Actions"
|
||||||
|
git config user.email "actions@gitea.local"
|
||||||
|
# Force create/move the tag locally
|
||||||
|
git tag -f nightly
|
||||||
|
# Force push the tag to the remote
|
||||||
|
git push -f origin nightly
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Publish Nightly Release
|
||||||
uses: actions/upload-artifact@v3
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: mathe-merkblaetter
|
tag_name: nightly
|
||||||
# Your script outputs to the ./build directory
|
name: Nightly Build
|
||||||
path: build/*.pdf
|
body: |
|
||||||
if-no-files-found: error
|
**Automated Nightly Build**
|
||||||
|
|
||||||
|
Triggered by commit: `${{ gitea.sha }}`
|
||||||
|
Date: ${{ gitea.event.head_commit.timestamp }}
|
||||||
|
files: build/*.pdf
|
||||||
|
prerelease: true
|
||||||
|
draft: false
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user