-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.14 KB
/
workflow.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: workflow
on:
push:
branches:
- master
workflow_dispatch:
#schedule:
# - cron: '0 * * * *'
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install
run: |
gem install bundler
bundle install
- name: Build
run: |
bundle exec jekyll build
- name: Test
run: |
bundle exec htmlproofer _dist --check-html --only-4xx --check-favicon
- name: Deploy
uses: feeloor/azure-static-website-deploy@master
env:
SOURCE_DIR: _dist
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SECRET: ${{ secrets.AZURE_SECRET }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}
AZURE_INDEX_DOCUMENT_NAME: index.html
AZURE_ERROR_DOCUMENT_NAME: 404.html
FORCE_OVERWRITE: true