chore(deps): update dependency dotnet-sdk to v8.0.404 #71
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: CICD | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
- 'alpha' | |
- 'beta' | |
- 'dev' | |
pull_request: | |
types: [opened, reopened, synchronize] | |
merge_group: | |
jobs: | |
create-release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
env: | |
DOTNET_INSTALL_DIR: "./.dotnet" | |
with: | |
global-json-file: global.json | |
- name: Dotnet Restore Workloads | |
run: dotnet workload restore | |
- name: Dotnet Build | |
run: dotnet build -c Release | |
- name: Dotnet Publish Browser | |
working-directory: src/AvaloniaTetris.Browser | |
run: dotnet publish -c Release | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: Install Netlify CLI | |
run: npm install netlify-cli -g | |
- name: Deploy | |
run: netlify deploy ${{ (github.ref == 'refs/heads/main' && '--prod') || '' }} --json -d src/AvaloniaTetris.Browser/bin/Release/net8.0/browser-wasm/AppBundle/ | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@v4 | |
id: semantic | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |