mirror of https://github.com/wwarthen/RomWBW.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
name: Release Build
|
|
|
|
on:
|
|
release:
|
|
types: published
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.3.0
|
|
|
|
- name: Create Package Label
|
|
run: |
|
|
LABEL=`echo "$GITHUB_REF" | sed "s|^refs/tags/||"`
|
|
echo "PKGLBL=$LABEL" >> $GITHUB_ENV
|
|
|
|
- name: Display Diagnostics
|
|
run: |
|
|
echo PKGLBL: "$PKGLBL"
|
|
echo Upload URL: "${{github.event.release.upload_url}}"
|
|
echo GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
|
|
|
|
- name: Build
|
|
run: |
|
|
export TZ='America/Los_Angeles'
|
|
sudo apt-get install libncurses-dev
|
|
sudo apt-get install srecord
|
|
make dist
|
|
rm -rf .git*
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3.1.1
|
|
with:
|
|
name: RomWBW-${{env.PKGLBL}}-Package
|
|
path: .
|
|
|
|
- name: Create Package Archive
|
|
run: |
|
|
zip -r RomWBW-${{env.PKGLBL}}-Package.zip .
|
|
|
|
- name: Upload Package Archive
|
|
uses: AButler/upload-release-assets@v2.0.2
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
files: |
|
|
RomWBW-${{env.PKGLBL}}-Package.zip
|