-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.27 KB
/
merge.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
name: "Deploy"
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2" # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: build
run: JEKYLL_ENV=production bundle exec jekyll build --verbose --destination site
- run: echo "coffeeanddata.ca" > ./site/CNAME
- name: test
run: bundle exec htmlproofer --assume-extension --allow-hash-href --http-status-ignore 999,403,500 --url-ignore "/twitter*/,/gstatic*/,/google*/,/tag*/" ./site
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: site
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
sonarQube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}