Skip to content

ci: Fix auto-release (#385) #9

ci: Fix auto-release (#385)

ci: Fix auto-release (#385) #9

name: release-automated
on:
push:
branches: [ master, main, release, alpha, beta ]
jobs:
release:
runs-on: ubuntu-latest
outputs:
current_tag: ${{ steps.tag.outputs.current_tag }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
# - name: Restore .NET dependencies
# run: dotnet restore /home/runner/work/Parse-SDK-dotNET/Parse-SDK-dotNET/Parse/Parse.csproj
# - name: Build .NET project
# run: dotnet build /home/runner/work/Parse-SDK-dotNET/Parse-SDK-dotNET/Parse/Parse.csproj -c Release
# - name: List output directory contents
# run: ls -la /home/runner/work/Parse-SDK-dotNET/Parse-SDK-dotNET/Parse/bin/Release/netstandard2.0
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install Node dependencies
run: npm ci
- name: Release
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}