Skip to content

Fix CI

Fix CI #41

Workflow file for this run

# .github/workflows/release.yml
name: Release
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-release:
name: Build artifacts
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Build package
with:
image: docker.io/batonogov/pyinstaller-linux:latest
options: |
--platform linux/arm64
run: |

Check failure on line 29 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 29, Col: 9): Unexpected value 'run' .github/workflows/release.yml (Line: 24, Col: 9): Required property is missing: uses
echo "Creating Linux artifact"
apt-get update && apt-get install -y zip
pip install -r ./requirements.txt
pyinstaller --onefile ./src/app.py
mkdir -p .artie && \
cp -r ./dist/app ./assets ./config.json .artie
zip -r Artie.zip .artie ./Artie\ Scraper.sh
- name: Get HEAD commit hash
id: get_commit
run: echo "::set-output name=commit_hash::$"
- name: Upload Artie.zip
uses: actions/upload-artifact@v3
with:
name: Artie
path: Artie.zip
- name: Generate release tag
id: tag
run: |
echo "::set-output name=release_tag::Artie_$(date +"%Y.%m.%d_%H-%M")"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: Artie.zip
tag_name: ${{ steps.tag.outputs.release_tag }}
release_name: Release ${{ steps.get_commit.outputs.commit_hash }}