Remove mkdir parent directory of arguments, it should not be the resp… #29
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: 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 }}" |