forked from gabrielecirulli/2048
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Asiel Díaz Benítez
authored
Jun 6, 2022
1 parent
7de23e9
commit 22ded15
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Create .xdc release if build steps involve python | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build .xdc file | ||
id: build | ||
run: | | ||
pip3 install -U pip | ||
pip3 install -U wheel | ||
pip3 install -r requirements.txt | ||
python3 build.py -n ${{ github.event.repository.name }} | ||
# This is just a little control flow hack. This ensures the correct file name is uploaded. | ||
if [[ ${{ github.event.repository.name }} == *.xdc ]] | ||
then | ||
exit 1 | ||
fi | ||
continue-on-error: true | ||
- uses: ncipollo/release-action@v1 | ||
if: steps.build.outcome != 'success' | ||
with: | ||
artifacts: ${{ github.event.repository.name }} | ||
- uses: ncipollo/release-action@v1 | ||
if: steps.build.outcome == 'success' | ||
with: | ||
artifacts: ${{ github.event.repository.name }}.xdc | ||
|