Skip to content

fix(deps): update all non-major dependencies (#171) #377

fix(deps): update all non-major dependencies (#171)

fix(deps): update all non-major dependencies (#171) #377

Workflow file for this run

name: build-and-deploy
on:
push:
branches: [ "master" ]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
packages: write
pull-requests: write
concurrency:
group: "build"
cancel-in-progress: true
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: 'oldstable'
- name: Setup Node.js environment
uses: actions/[email protected]
- name: Setup .NET environment
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
source-url: https://nuget.pkg.github.com/tuihub/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Setup Rust environment
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Setup Dart environment
uses: dart-lang/[email protected]
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Install Protoc Plugins
run: make install-plugins
- name: Setup bufbuild
uses: bufbuild/[email protected]
- name: Build
run: make generate
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Apply Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: apply auto code generation'
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
config-file: release-please-config.json
- name: Build C# project
if: ${{ steps.release-please.outputs.releases_created }}
run: dotnet build TuiHub.Protos.csproj -c Release
- name: Create nuget package
if: ${{ steps.release-please.outputs.releases_created }}
run: dotnet pack TuiHub.Protos.csproj --no-build -c Release
- name: Publish nuget package to GPR
if: ${{ steps.release-please.outputs.releases_created }}
run: dotnet nuget push bin/Release/*.nupkg --skip-duplicate
- name: Publish nuget package to nuget.org
if: ${{ steps.release-please.outputs.releases_created }}
run: dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}}