Skip to content

Commit 06917ca

Browse files
committed
fix workflows
1 parent 8f062c0 commit 06917ca

File tree

2 files changed

+8
-34
lines changed

2 files changed

+8
-34
lines changed

.github/workflows/artifact.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/document.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Document
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
- production
8-
tags:
9-
- 'v*'
3+
on: [push, pull_request]
104

115
jobs:
126
doc:
@@ -28,13 +22,20 @@ jobs:
2822
run: |
2923
cd tools &&
3024
./generate_document.py --tag ${{ steps.branch.outputs.VERSION_NAME }} &&
25+
./generate_zip.py &&
3126
rm ../document_ja/*.md ../document_en/*.md &&
3227
mkdir generated &&
3328
mv ../document_ja generated/ &&
3429
mv ../document_en generated/
3530
- name: Publish to github pages
31+
if: ${{ github.repository == atcoder/ac-library }}
3632
uses: peaceiris/actions-gh-pages@v3
3733
with:
3834
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
3935
publish_dir: ./tools/generated
4036
destination_dir: ${{ steps.branch.outputs.VERSION_NAME }}
37+
- name: Upload zip
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: ac-library
41+
path: tools/ac-library.zip

0 commit comments

Comments
 (0)