Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup deploy via GitHub action #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: Set up Bundler
run: |
gem install bundler
bundle config path vendor/bundle

- name: Cache Ruby dependencies
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-

- name: Install dependencies
run: |
bundle install --without development

- name: Build
run: |
./script/build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
vendor
.DS_Store
.bundle
/build/*
!/build/.gitkeep
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Most people fork and edit these to suit, but if you find an issue or make an imp
4. To compile the agreements into HTML:

```
$ bundle exec ./compile
$ ./script/compile
```

You should find some HTML in the build directory. This tool is a bit rough & ready, and we probably won't spend much time improving it, but do raise an issue if it just doens't work at all.
You should find some HTML in the build directory.

## Modification

Expand Down
Empty file added build/.gitkeep
Empty file.
102 changes: 0 additions & 102 deletions build/acceptable_usage.md.html

This file was deleted.

Binary file removed build/assets/dxw-cyber-logo.png
Binary file not shown.
Binary file removed build/assets/dxw-logo.png
Binary file not shown.
222 changes: 0 additions & 222 deletions build/assets/styles.css

This file was deleted.