File tree Expand file tree Collapse file tree 3 files changed +115
-0
lines changed Expand file tree Collapse file tree 3 files changed +115
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
+ name : GH-Pages
3
+
4
+ on :
5
+ # Runs on pushes targeting the default branch
6
+ push :
7
+ branches : ["main"]
8
+ pull_request :
9
+ branches : ["feature/*"]
10
+
11
+ # Allows you to run this workflow manually from the Actions tab
12
+ workflow_dispatch :
13
+
14
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15
+ permissions :
16
+ contents : write
17
+ pages : write
18
+ id-token : write
19
+
20
+ # Allow one concurrent deployment
21
+ concurrency :
22
+ group : " pages"
23
+ cancel-in-progress : true
24
+
25
+ jobs :
26
+ # Build job
27
+ build :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - name : Checkout
31
+ uses : actions/checkout@v3
32
+ - name : Setup Pages
33
+ uses : actions/configure-pages@v2
34
+ - name : build_and_deploy
35
+
36
+ env :
37
+ BUILD_DIR : website
38
+ # Target branch
39
+ PAGES_BRANCH : gh-pages
40
+ # Provide personal access token
41
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ website_dir : public
43
+ - name : Upload artifact
44
+ uses : actions/upload-pages-artifact@v1
45
+ with :
46
+ name : github-pages
47
+ path : website/public
48
+ retention-days : 365
49
+
50
+
51
+
52
+ # Deployment job
53
+ deploy :
54
+ environment :
55
+ name : github-pages
56
+ url : ${{ steps.deployment.outputs.page_url }}
57
+ runs-on : ubuntu-latest
58
+ needs : build
59
+ steps :
60
+ - name : Deploy to GitHub Pages
61
+ id : deployment
62
+ uses : actions/deploy-pages@v1
63
+
Original file line number Diff line number Diff line change
1
+ # When pushed to master, run `cargo +nightly fmt --all` and open a PR.
2
+ name : rustfmt
3
+ on :
4
+ push :
5
+ # Limit to `master` because this action creates a PR
6
+ branches :
7
+ - master
8
+ - issues/*
9
+
10
+ jobs :
11
+ rustfmt_nightly :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout sources
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Install nightly toolchain with rustfmt available
18
+ uses : actions-rs/toolchain@v1
19
+ with :
20
+ toolchain : nightly
21
+ override : true
22
+ components : rustfmt
23
+
24
+ - run : rustfmt +nightly --edition 2018 $(find . -type f -iname *.rs)
25
+
26
+ - name : Create Pull Request
27
+ uses : peter-evans/create-pull-request@v3
28
+ with :
29
+ commit-message : rustfmt
30
+ signoff : true
31
+ title : rustfmt
32
+ body : |
33
+ Changes from `rustfmt +nightly --edition 2018 $(find . -type f -iname *.rs)`.
34
+ branch : rustfmt
35
+ # Delete branch when merged
36
+ delete-branch : true
Original file line number Diff line number Diff line change
1
+ # The URL the site will be built for
2
+ base_url = " https://weaveworks.org"
3
+
4
+ # Whether to automatically compile all Sass files in the sass directory
5
+ compile_sass = true
6
+
7
+ # Whether to build a search index to be used later on by a JavaScript library
8
+ build_search_index = true
9
+
10
+ [markdown ]
11
+ # Whether to do syntax highlighting
12
+ # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
13
+ highlight_code = true
14
+
15
+ [extra ]
16
+ # Put all your custom variables here
You can’t perform that action at this time.
0 commit comments