-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 988 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}