release @ 060663239ce46ded6bdf4476bca06326b674d555 #24
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
name: Release | |
run-name: release @ ${{ github.sha }} | |
on: | |
push: | |
paths: | |
- 'Delta/**' | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PA_TOKEN }} | |
- name: Archive files | |
run: tar czf delta-linux.tar.gz Delta | |
- name: Add short commit hash to env | |
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | |
- name: Add calver to env | |
run: echo "CALVER=`date "+%Y.%m.%d"`" >> $GITHUB_ENV | |
- name: Create a GitHub release | |
uses: softprops/[email protected] | |
with: | |
files: delta-linux.tar.gz | |
tag_name: ${{ env.CALVER }}+${{ env.SHORT_SHA }} | |
- name: Update the website | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: deploy.yml | |
repo: ${{ github.repository_owner }}/delta-icons.github.io | |
token: ${{ secrets.PA_TOKEN }} |