Updated nightly release script

This commit is contained in:
jLynx 2022-04-03 09:15:06 +12:00
parent a17eb47657
commit b33ef608ee

View File

@ -15,6 +15,9 @@ jobs:
- name: Get current date - name: Get current date
id: date id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Get version date
id: version_date
run: echo "::set-output name=date::n_$(date +'%y%m%d')"
- name: Checkout - name: Checkout
uses: actions/checkout@master uses: actions/checkout@master
with: with:
@ -28,7 +31,7 @@ jobs:
- name: Make build folder - name: Make build folder
run: mkdir ${{ github.workspace }}/build run: mkdir ${{ github.workspace }}/build
- name: Run the Docker image - name: Run the Docker image
run: docker run -i -v ${{ github.workspace }}:/havoc portapack-dev run: docker run -e VERSION_STRING=${{ steps.version_date.outputs.date }} -i -v ${{ github.workspace }}:/havoc portapack-dev
- name: Create Firmware ZIP - name: Create Firmware ZIP
run: | run: |
zip --junk-paths firmware build/firmware/portapack-h1_h2-mayhem.bin zip --junk-paths firmware build/firmware/portapack-h1_h2-mayhem.bin
@ -46,6 +49,7 @@ jobs:
body: | body: |
**Nightly release - ${{ steps.date.outputs.date }}** **Nightly release - ${{ steps.date.outputs.date }}**
This build is the latest and greatest, although may not be the most stable as this is a nightly release. This build is the latest and greatest, although may not be the most stable as this is a nightly release.
Version: ${{ steps.version_date.outputs.date }}
You can find the changes in this commit ${{ github.sha }} You can find the changes in this commit ${{ github.sha }}
draft: false draft: false
prerelease: true prerelease: true