Create Release with SPT-AKI Integration #3
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
on: | |
workflow_dispatch: | |
name: Create Release with SPT-AKI Integration on Windows | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ "ubuntu-latest", "windows-latest" ] | |
permissions: write-all | |
name: Create Release | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout SIT-Server-Mod Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.10.0' | |
- name: Read package.json | |
id: read_package_json | |
run: echo "::set-output name=version::$(node -e 'console.log(require(`./package.json`).version)')" | |
- name: Build Release Package | |
id: build | |
shell: pwsh | |
run: ./package_release_with_server.ps1 -Overwrite -Branch 3.8.0 | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.read_package_json.outputs.version }} | |
name: SPT-AKI-with-SITCoop-${{ github.run_number }} | |
files: ${{ steps.build.outputs.ZIP_NAME }} | |
draft: true | |
prerelease: false | |
generate_release_notes: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |