This commit is contained in:
@@ -35,11 +35,28 @@ jobs:
|
||||
run: |
|
||||
chmod +x 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
|
||||
uses: actions/upload-artifact@v3
|
||||
- name: Publish Nightly Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: mathe-merkblaetter
|
||||
# Your script outputs to the ./build directory
|
||||
path: build/*.pdf
|
||||
if-no-files-found: error
|
||||
tag_name: nightly
|
||||
name: Nightly Build
|
||||
body: |
|
||||
**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