-
-
Notifications
You must be signed in to change notification settings - Fork 83
41 lines (36 loc) · 1.32 KB
/
deploy-to-heroku.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
37
38
39
40
41
# This is a basic workflow to help you get started with Actions
name: Deploy to Heroku
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Deployment job
deploy:
environment:
name: heroku
url: https://theidserver-duende.herokuapp.com/
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET sdk
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9
include-prerelease: true
- name: Setup wasm tools
run: dotnet workload install wasm-tools
env:
GITHIB_FEED_TOKEN: ${{ secrets.GITHIB_FEED_TOKEN }}
- name: Publish
run: dotnet publish ./src/Aguacongas.TheIdServer.Duende/Aguacongas.TheIdServer.Duende.csproj --output ./heroku_output --configuration Release --runtime linux-x64 --sc -p:SourceRevisionId=$GITHUB_SHA /nr:false /m:1
- name: Deploy
uses: akhileshns/heroku-deploy@v3.12.14
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "theidserver-duende"
heroku_email: "aguacongas@gmail.com"
buildpack: https://github.com/Aguafrommars/theidserverbuildpack