Skip to content

Remove mkdir parent directory of arguments, it should not be the resp… #29

Remove mkdir parent directory of arguments, it should not be the resp…

Remove mkdir parent directory of arguments, it should not be the resp… #29

Workflow file for this run

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