-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (50 loc) · 1.88 KB
/
deploy.yml
File metadata and controls
51 lines (50 loc) · 1.88 KB
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
49
50
51
name: Deploy template repo
on:
workflow_dispatch:
push:
branches:
- development
jobs:
deploy:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skipci]')"
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d:%H:%M')" >> $GITHUB_OUTPUT
- name: Checkout 🛎️
uses: actions/checkout@v1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
- name: create external report
run: |
chmod a+rx build/build*sh
build/build-ext-report.sh
- name: Run docker for Docx
uses: docker://pandoc/latex:2.9
with:
args: "EXTERNAL-REPORT.md --standalone -t docx -o EXTERNAL-REPORT.docx"
- name: create checksums
run: |
sha256sum REPLICATION.md > generated/REPLICATION.sha256
- name: Preserve reference copy
run: |
cp REPLICATION.md template/original-REPLICATION.md
- name: clean out
run: |
rm -rf .git
rm -rf build
# send it to gh-pages
# We use a personal token to allow for posting despite branch controls - see https://github.com/peaceiris/actions-gh-pages for parameters
# We also use a *beta* feature to post to a particular destination_dir.
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
with:
deploy_key: ${{ secrets.PUSH_DEPLOY_KEY }}
user_name: 'Github Action Bot'
user_email: 'lars.vilhuber@cornell.edu'
external_repository: aeadataeditor/replication-template
publish_branch: master
publish_dir: ./
keep_files: false
force_orphan: true
exclude_assets: '.github'
commit_message: Release date ${{ steps.date.outputs.date }}