Skip to content

Snapshot

Snapshot #8

Workflow file for this run

name: Snapshot
on:
push:
tags:
- 'snapshot/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set build variables
run: |
echo "GIT_VER=${GITHUB_REF##*/}" >> ${GITHUB_ENV}
echo "GIT_TAG=${GITHUB_REF##refs/tags/}" >> ${GITHUB_ENV}
cat ${GITHUB_ENV}
- name: Make snapshot package
run: zip -q -r "rotorflight-lua-ethos-${{ env.GIT_VER }}.zip" RF2* rf2*
- name: Create Snapshot
run: |
.github/scripts/extract-release-notes.py "${{ env.GIT_VER }}" Releases.md > Notes.md
gh release create ${{ env.GIT_TAG }} --prerelease --notes-file Notes.md --title "Rotorflight Lua Scripts for Ethos - Snapshot ${{ env.GIT_VER }}" *.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}