Merge pull request #165 from HolterPhylo/UpdateFor12113833 #188
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: MBINCompiler-test-data | |
on: | |
# Run on all branches except for the gh-pages branch | |
push: | |
branches-ignore: | |
- 'gh-pages' | |
pull_request: | |
branches-ignore: | |
- 'gh-pages' | |
create: | |
jobs: | |
build: | |
name: Package files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Zip the data folder | |
run: | | |
mkdir dist | |
zip dist/data.zip -r data | |
- name: Store zip for release | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test-data | |
path: | | |
dist/data.zip | |
data/.version | |
release: | |
name: Release MBINCompiler-test-data | |
runs-on: ubuntu-latest | |
needs: [build] | |
# Only run on the master branch | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Collect artefacts for release | |
uses: actions/download-artifact@v2 | |
with: | |
name: test-data | |
- name: Get MBINCompiler-test-data tag version | |
run: echo "VERSION=$(cat ./data/.version)" >> $GITHUB_ENV | |
- name: Upload resources to release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{ env.VERSION }} | |
tag_name: ${{ env.VERSION }} | |
files: dist/data.zip | |
body: MBINCompiler test data for NMS Steam BuildID ${{ env.VERSION }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |