Add webcredentials support #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true # Fetch Hugo themes (true OR recursive) | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: '12.x' | |
- name: Install jq | |
run: sudo apt-get install -y jq | |
- uses: actions/cache@v3 | |
with: | |
path: /tmp/hugo_cache | |
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-hugomod- | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Build | |
env: | |
GO111MODULE: on | |
run: ./build.sh | |
- name: Archive Production Artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: .build | |
path: .build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
cname: opass.app | |
publish_dir: .build | |
force_orphan: true | |
# - uses: akhileshns/[email protected] | |
# with: | |
# heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
# heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} | |
# heroku_email: ${{ secrets.HEROKU_EMAIL }} | |
# usedocker: true |