-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.35 KB
/
release_action.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
42
43
44
45
46
47
48
name: Release
on:
push:
branches: [ master ]
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Checkout
uses: actions/checkout@v3
# Fills the configuration with some not so secret secrets
- name: Fill config values
run: sed -i 's|GD_INQUIRY_URL|${{ secrets.GD_INQUIRY_URL }}|g' src/Byteology.Website/Config.cs
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Tailwind CSS
run: npm install -D tailwindcss postcss postcss-cli autoprefixer postcss-minify postcss-import-ext-glob
- name: Publish
working-directory: src
run: dotnet publish Byteology.Website -c Release -o ../release --nologo
- name: Set 404 page
run: cp release/wwwroot/index.html release/wwwroot/404.html
# Add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
- name: Commit wwwroot
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: release
FOLDER: release/wwwroot