update and quarantine checks, yay! #23
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: .NET | |
on: | |
push: | |
branches: | |
- psqldeko | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 8.0.100-rc.1.23463.5 | |
- name: Restore dependencies Mewdeko | |
run: dotnet restore src/Mewdeko/Mewdeko.csproj | |
- name: Restore dependencies Mewdeko.Votes | |
run: dotnet restore src/Mewdeko.Votes/Mewdeko.Votes.csproj | |
- name: Build Mewdeko | |
run: dotnet publish src/Mewdeko/Mewdeko.csproj --no-restore -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=false -p:IncludeNativeLibrariesForSelfExtract=true -p:UseAppHost=true -o output/ | |
- name: Build Mewdeko.Votes | |
run: dotnet publish src/Mewdeko.Votes/Mewdeko.Votes.csproj --no-restore -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=false -p:IncludeNativeLibrariesForSelfExtract=true -p:UseAppHost=true -o output/ | |
- name: Test | |
run: dotnet test --no-restore --verbosity normal | |
- name: Zip artifacts | |
run: | | |
cd output | |
Get-ChildItem -Recurse -Include *.pdb | Remove-Item -Force | |
Compress-Archive -Path * -DestinationPath ../MewdekoPsql-win64.zip | |
- name: Get current date | |
id: get_date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
shell: bash | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: psqldeko-${{ github.run_number }} | |
release_name: PsqlDeko build ${{ github.run_number }} (${{ steps.get_date.outputs.date }}) | |
body: "Automated psql build for commit ${{ github.sha }} \n # WARNING: Mewdeko on PSQL is in early beta and has missing features. If you find bugs please report them." | |
draft: false | |
prerelease: true | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./MewdekoPsql-win64.zip | |
asset_name: MewdekoPsql-win64.zip | |
asset_content_type: application/zip |