forked from openqasm/openqasm
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.21 KB
/
publish-estable-version.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
name: Publish Estable Version
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the live-doc branch
on:
workflow_dispatch:
inputs:
version-tag:
description: 'Tag labeling the version to publish'
required: true
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.event.inputs.version-tag }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.version-tag }}
path: ${{ github.event.inputs.version-tag }}
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate HTML
run: make html
env:
HTML_BASEURL: ./${{ github.event.inputs.version-tag }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ${{ github.event.inputs.version-tag }}/build/html
TARGET_FOLDER: ${{ github.event.inputs.version-tag }}
CLEAN: false