-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pasquale Africa
committed
Dec 28, 2021
1 parent
cd9c143
commit ab011f1
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Create release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
create_release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup | ||
run: | | ||
REPO_DIR=beamertheme-focus | ||
echo "REPO_DIR=${REPO_DIR}" >> ${GITHUB_ENV} | ||
echo "ASSET_NAME=${REPO_DIR}.zip" >> ${GITHUB_ENV} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ${{env.REPO_DIR}} | ||
|
||
- name: Create asset | ||
run: | | ||
zip -r ${{env.ASSET_NAME}} . -x "*.git*" | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
name: ${{github.ref_name}} | ||
body_path: ${{github.workspace}}/${{env.REPO_DIR}}/CHANGELOG.md | ||
files: ${{env.ASSET_NAME}} | ||
fail_on_unmatched_files: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Added GitHub actions to: | ||
- create new releases on push of new tags | ||
- generate the archive file to be submitted to the CTAN | ||
|