Skip to content

Commit

Permalink
ci: upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Nov 12, 2024
1 parent 9fb7963 commit 718fd39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: check if generated files are of latest version
run: |
git diff --exit-code
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
path: |
build/distrib/tds/
Expand Down
39 changes: 7 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,14 @@ jobs:
- name: check if generated files are of latest version
run: |
git diff --exit-code
- uses: actions/create-release@latest
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
name: Release ${{ github.ref }}
body: ${{ github.event.head_commit.message }}
draft: true
- name: add presenter-doc.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: texmf/doc/latex/presenter/presenter-doc.pdf
asset_name: presenter-doc.pdf
asset_content_type: application/pdf
- name: add presenter-ctan.zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: presenter-ctan.zip
asset_name: presenter-ctan.zip
asset_content_type: application/x-zip
- name: add presenter.tds.zip
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/distrib/tds/presenter.tds.zip
asset_name: presenter.tds.zip
asset_content_type: application/x-zip
files: |
texmf/doc/latex/presenter/presenter-doc.pdf
presenter-ctan.zip
build/distrib/tds/presenter.tds.zip

0 comments on commit 718fd39

Please sign in to comment.