-
-
Notifications
You must be signed in to change notification settings - Fork 261
36 lines (36 loc) · 1.24 KB
/
release-automated.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}