Skip to content

Commit

Permalink
Add GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasquale Africa committed Dec 28, 2021
1 parent cd9c143 commit ab011f1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
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

0 comments on commit ab011f1

Please sign in to comment.