Skip to content

release @ 09e3f74c3e3f9ca08c321a1b2b559c7956905c22 #18

release @ 09e3f74c3e3f9ca08c321a1b2b559c7956905c22

release @ 09e3f74c3e3f9ca08c321a1b2b559c7956905c22 #18

Workflow file for this run

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 }}