Skip to content

Commit

Permalink
Fix YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleySweet committed Aug 4, 2024
1 parent 596b1b1 commit 18e104c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 29 deletions.
60 changes: 32 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Build Archive

on:

Check warning on line 4 in .github/workflows/build.yml

View workflow job for this annotation

GitHub Actions / build

4:1 [truthy] truthy value should be one of [false, true]
Expand All @@ -10,31 +11,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -c "import sys; print(sys.version_info[:2])" | grep -E '^\(3, (1[1-9]|[2-9][0-9])\)$' || python -m pip install tomli
- name: Run build script
run: python build.py

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
gh release create $TAG_NAME dist/* -t "Release $TAG_NAME" -n "Automated release for version $TAG_NAME"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: io_scene_pyrogenesis
path: dist/*
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -c "import sys; print(sys.version_info[:2])" \
| grep -E '^\(3, (1[1-9]|[2-9][0-9])\)$' \
|| python -m pip install tomli
- name: Run build script
run: python build.py

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME=$(echo $GITHUB_REF | sed 's/refs\/tags\///')
gh release create $TAG_NAME dist/* -t "Release $TAG_NAME" -n \
"Automated release for version $TAG_NAME"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: io_scene_pyrogenesis
path: dist/*
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
- uses: pre-commit/[email protected]

0 comments on commit 18e104c

Please sign in to comment.