-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 914 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
name: Puppeteer server build and Release
on:
push:
branch:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Tar out folder
working-directory: ./
run: tar -czvf puppeteer_server.tar.gz --exclude=.github ./*
- name: Get current date
id: date
run: echo "date=$(date +'%Y_%m_%d_%H_%M_%S')" >> $GITHUB_OUTPUT
- name: Create or Update release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release delete latest-release --yes || true
gh release create latest-release puppeteer_server.tar.gz \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} latest release" \
--notes "Generated on ${{ steps.date.outputs.date }}"