Skip to content

v1.0.0-beta.20

v1.0.0-beta.20 #3

Workflow file for this run

name: installers
on:
release:
types: [published]
jobs:
generate-installers:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: set-version
run: |
sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.sh > installer.sh
sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.ps1 > installer.ps1
- name: generate-token
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
with:
app_id: ${{ secrets.BOT2_APP_ID }}
private_key: ${{ secrets.BOT2_APP_PEM }}
revoke: true
- name: upload
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2
with:
files: |
installer.sh
installer.ps1
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}