-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.08 KB
/
build_pygame.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build this project using Pygbag
on:
push:
branches:
- main
jobs:
build:
name: building project
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout
uses: actions/[email protected]
with:
persist-credentials: false
fetch-depth: 0
- name: build
run: |
echo "Installing pygbag"
python3 -m pip install pygbag
echo "pygbag success!"
echo "building the project"
python3 -m pygbag --build $GITHUB_WORKSPACE/main.py
echo "DONE"
zip -j -r pysinglslider_demo.zip build/web
- name: Generate release tag
id: generate_release_tag
uses: alexvingg/[email protected]
with:
github_token: ${{ secrets.GH_CREDENTIALS }}
tag_prefix: ""
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GH_CREDENTIALS }}
tag: ${{ steps.generate_release_tag.outputs.release_tag }}
artifacts: pysinglslider_demo.zip