add file pip to update #11
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: ['*'] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Create package | |
run: | | |
rm -rf *.tar.gz | |
npx --yes wspackager@latest | |
- name: Check file existence | |
id: check_files | |
uses: andstor/[email protected] | |
with: | |
files: "*.tar.gz" | |
- name: On Build Failure | |
if: steps.check_files.outputs.files_exists == 'false' | |
run: | | |
echo "Packaging FAILED" && exit 1 | |
- name: Release | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') && steps.check_files.outputs.files_exists == 'true' | |
with: | |
files: "*.tar.gz" |