remove model/anim extension strings #48
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: FModel QA Builder | |
on: | |
push: | |
branches: [ dev ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: GIT Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: .NET 8 Setup | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: .NET Restore | |
run: dotnet restore FModel | |
- name: .NET Publish | |
run: dotnet publish "./FModel/FModel.csproj" -c Release --no-restore --no-self-contained -r win-x64 -f net8.0-windows -o "./FModel/bin/Publish/" -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:DebugType=None -p:GenerateDocumentationFile=false -p:DebugSymbols=false | |
- name: ZIP File | |
uses: thedoctor0/[email protected] | |
with: | |
type: zip | |
filename: ${{ github.sha }}.zip # will end up in working directory not the Publish folder | |
path: ./FModel/bin/Publish/FModel.exe | |
- name: Edit QA Artifact | |
uses: ncipollo/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: 'FModel QA Testing' | |
body: 'Dev builds' | |
tag: 'qa' | |
artifacts: ${{ github.sha }}.zip | |
prerelease: true | |
allowUpdates: true | |
- name: Get Version | |
id: package_version | |
uses: kzrnm/get-net-sdk-project-versions-action@v2 | |
with: | |
proj-path: ./FModel/FModel.csproj | |
- name: FModel Auth | |
id: fmodel_auth | |
uses: fjogeleit/[email protected] | |
with: | |
url: "https://api.fmodel.app/v1/oauth/token" | |
data: '{"username": "${{ secrets.API_USERNAME }}", "password": "${{ secrets.API_PASSWORD }}"}' | |
- name: FModel Deploy Build | |
uses: fjogeleit/[email protected] | |
with: | |
url: "https://api.fmodel.app/v1/infos/${{ secrets.QA_ID }}" | |
method: "PATCH" | |
bearerToken: ${{ fromJson(steps.fmodel_auth.outputs.response).accessToken }} | |
data: '{"version": "${{ steps.package_version.outputs.version }}-dev+${{ github.sha }}", "downloadUrl": "https://github.com/4sval/FModel/releases/download/qa/${{ github.sha }}.zip"}' |