Skip to content

Update release-miz.yml #3

Update release-miz.yml

Update release-miz.yml #3

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Create Miz Files
on:
push:
branches:
- main
- master
# For debugging
- "*"
env:
MIZFILE: Syria_Training.miz
permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get release name based on date and time
id: builddate

Check failure on line 26 in .github/workflows/release-miz.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-miz.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
run: |
echo "{builddate}={$(date +'%Y%m%d-%H%M')}" >> $GITHUB_STATE
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r pyscripts/requirements.txt
- name: Create Dist Dir
run: mkdir dist/
- name: Create Dist Files
run: |
python pyscripts/create_missions.py --outdir dist --debug $MIZFILE ${{ env.builddate }}
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
${{ env.builddate }}'
--repo '${{ github.repository }}'
--notes ""
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ env.builddate }}' dist/**
--repo '${{ github.repository }}'