Added Github token to env
This commit is contained in:
parent
87749738d7
commit
1ac434fb6e
|
|
@ -41,6 +41,9 @@ jobs:
|
||||||
# Start Release
|
# Start Release
|
||||||
Site:
|
Site:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
env:
|
||||||
|
NETLIFY_SITE_ID: 987651c8-4ffd-48d8-af67-4dbd49c48887
|
||||||
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -54,11 +57,15 @@ jobs:
|
||||||
apt install -y ./hugo_extended_0.146.0_linux-amd64.deb
|
apt install -y ./hugo_extended_0.146.0_linux-amd64.deb
|
||||||
- name: Build Site
|
- name: Build Site
|
||||||
run: |
|
run: |
|
||||||
cd _site
|
cd _site
|
||||||
mkdir -p themes
|
mkdir -p themes
|
||||||
git clone https://github.com/alex-shpak/hugo-book.git themes/hugo-book
|
git clone https://github.com/alex-shpak/hugo-book.git themes/hugo-book
|
||||||
npm install
|
npm install
|
||||||
hugo --minify
|
hugo --minify
|
||||||
|
- name: Publish Site
|
||||||
|
run: |
|
||||||
|
cd _site
|
||||||
|
netlify deploy --dir docs --prod
|
||||||
|
|
||||||
'Release MacOS':
|
'Release MacOS':
|
||||||
# needs: build
|
# needs: build
|
||||||
|
|
@ -81,4 +88,5 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
goreleaser release -f macos.goreleaser.yml --skip=validate --clean
|
goreleaser release -f macos.goreleaser.yml --skip=validate --clean
|
||||||
env:
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
HOMEBREW_TAP_PRIVATE_KEY: ${{ secrets.HOMEBREW_TAP_PRIVATE_KEY }}
|
HOMEBREW_TAP_PRIVATE_KEY: ${{ secrets.HOMEBREW_TAP_PRIVATE_KEY }}
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,6 @@
|
||||||
debug.log
|
debug.log
|
||||||
.DS_store
|
.DS_store
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
# Local Netlify folder
|
||||||
|
.netlify
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue