From 0c9dfdbc8ad7e0dc71bb9a139fe55ecc5bb67ab5 Mon Sep 17 00:00:00 2001 From: Brae Stoltz Date: Sun, 20 Feb 2022 07:43:24 -0500 Subject: [PATCH] feat: release CI --- .github/workflows/release.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e86fe8e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,49 @@ +name: Create Release For Game +on: + workflow_dispatch: + inputs: + game: + description: 'Which game the release is for' + required: true + version: + description: 'Version' + required: true + dumpfile: + description: 'Dump file location in repo' + required: true + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.10.2' + + - name: Run Script + run: python3 panorama_jsdoc_gen.py dump_samples/${{ github.event.inputs.dumpfile }} __panorama_types.js + + - uses: actions/upload-artifact@v2 + with: + name: PanoramaTypes + path: __panorama_types.js + + - name: Zip Typefile + uses: thedoctor0/zip-release@master + with: + type: 'zip' + path: __panorama_types.js + filename: 'panoramatypes.zip' + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.event.inputs.game }}-${{ github.event.inputs.version }} + release_name: ${{ github.event.inputs.game }}-${{ github.event.inputs.version }} + files: panoramatypes.zip + fail_on_unmatched_files: true \ No newline at end of file