CI: update config location #23
Workflow file for this run
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
name: Compile | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
name: Z64Utils-${{ matrix.configuration }} | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
restore_args: '' | |
build_args: --no-self-contained --configuration ${{ matrix.configuration }} --version-suffix ${{ github.sha }} | |
archive_name: Z64Utils-${{ matrix.configuration }}-${{ github.sha }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: dotnet info | |
shell: bash | |
run: | | |
dotnet --info | |
- name: dotnet restore | |
shell: bash | |
run: | | |
dotnet restore ${{ env.restore_args }} | |
- name: dotnet build | |
shell: bash | |
run: | | |
dotnet build ${{ env.restore_args }} ${{ env.build_args }} | |
- name: dotnet publish | |
shell: bash | |
run: | | |
dotnet publish --output publish_out/ ${{ env.restore_args }} ${{ env.build_args }} | |
- uses: actions/checkout@v4 | |
with: | |
repository: zeldaret/Z64Utils | |
ref: config | |
path: Z64Utils-Config | |
fetch-depth: 0 | |
- name: Copy versions data | |
shell: bash | |
run: | | |
cp -r -t publish_out/ Z64Utils-Config/versions | |
# Archive | |
- name: Create archive | |
shell: bash | |
run: | | |
cd publish_out | |
tar -czvf ../${{ env.archive_name }}.tar.gz * | |
- name: Upload archive | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.archive_name }} | |
path: | | |
${{ env.archive_name }}.tar.gz |