Bump Fronter.NET from 8ab1972
to 4692537
(#1446)
#690
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: Build development version | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
remove_old_artifacts: | |
name: Remove old artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remove old artifacts | |
uses: ThreadsStyling/purge-artifacts-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
expire-in: 0 | |
upload_dev_build_artifact: | |
name: Upload development build | |
needs: remove_old_artifacts | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
build: | |
- win-x64 | |
- linux-x64 | |
include: | |
- build: win-x64 | |
os: windows-latest | |
archive_type: zip | |
archive_extension: .zip | |
- build: linux-x64 | |
os: ubuntu-latest | |
archive_type: tar | |
archive_extension: .tgz | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: "Setup Dotnet for use with actions" | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: Fronter.NET/global.json | |
env: | |
BACKBLAZE_KEY_ID: '${{ secrets.BACKBLAZE_KEY_ID }}' | |
BACKBLAZE_APPLICATION_KEY: '${{ secrets.BACKBLAZE_APPLICATION_KEY }}' | |
BACKBLAZE_BUCKET_ID: '${{ secrets.BACKBLAZE_BUCKET_ID }}' | |
- name: "Replace frontend background image" | |
run: | | |
rm Fronter.NET/Fronter.NET/Assets/Images/background.png | |
cp ImperatorToCK3/Resources/images/SteamMainImage.png Fronter.NET/Fronter.NET/Assets/Images/background.png | |
- name: "Build frontend" | |
uses: ./Fronter.NET/.github/actions/build_frontend | |
with: | |
fronter_dir: 'Fronter.NET' | |
release_dir: 'Publish' | |
- name: Setup Dotnet for use with actions | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- name: "Build backend" | |
working-directory: ImperatorToCK3 | |
run: | | |
dotnet publish -p:PublishProfile=${{ matrix.build }} -c:Release --output:"../Publish/ImperatorToCK3" | |
- name: Archive Publish folder | |
uses: thedoctor0/zip-release@master | |
with: | |
type: ${{ matrix.archive_type }} | |
directory: 'Publish' | |
path: '.' | |
filename: '../ImperatorToCK3-${{ matrix.build }}-dev${{ matrix.archive_extension }}' | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ImperatorToCK3-${{ matrix.build }}-dev | |
path: 'ImperatorToCK3-${{ matrix.build }}-dev${{ matrix.archive_extension }}' | |
retention-days: 30 |