Skip to content

Commit

Permalink
feat: release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
braem committed Feb 20, 2022
1 parent ab9168b commit 0c9dfdb
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0c9dfdb

Please sign in to comment.