Merge pull request #2093 from bbbradsmith/split2089-workflow-docs-artifact
Workflow docs artifact and snapshot
This commit is contained in:
5
.github/workflows/build-on-pull-request.yml
vendored
5
.github/workflows/build-on-pull-request.yml
vendored
@@ -43,6 +43,11 @@ jobs:
|
|||||||
- name: Build the document files.
|
- name: Build the document files.
|
||||||
shell: bash
|
shell: bash
|
||||||
run: make -j2 doc
|
run: make -j2 doc
|
||||||
|
- name: Upload a documents snapshot.
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: docs
|
||||||
|
path: ./html
|
||||||
- name: Build 64-bit Windows versions of the tools.
|
- name: Build 64-bit Windows versions of the tools.
|
||||||
run: |
|
run: |
|
||||||
make -C src clean
|
make -C src clean
|
||||||
|
|||||||
22
.github/workflows/snapshot-on-push-master.yml
vendored
22
.github/workflows/snapshot-on-push-master.yml
vendored
@@ -92,12 +92,12 @@ jobs:
|
|||||||
- name: Upload a 32-bit Snapshot Zip
|
- name: Upload a 32-bit Snapshot Zip
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cc65-snapshot-win32.zip
|
name: cc65-snapshot-win32
|
||||||
path: cc65-snapshot-win32.zip
|
path: cc65-snapshot-win32.zip
|
||||||
- name: Upload a 64-bit Snapshot Zip
|
- name: Upload a 64-bit Snapshot Zip
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cc65-snapshot-win64.zip
|
name: cc65-snapshot-win64
|
||||||
path: cc65-snapshot-win64.zip
|
path: cc65-snapshot-win64.zip
|
||||||
|
|
||||||
- name: Get the online documents repo.
|
- name: Get the online documents repo.
|
||||||
@@ -121,9 +121,16 @@ jobs:
|
|||||||
# prevent failure when there is nothing to commit
|
# prevent failure when there is nothing to commit
|
||||||
git diff-index --quiet HEAD || git commit -m "Updated from https://github.com/cc65/cc65/commit/${GITHUB_SHA}"
|
git diff-index --quiet HEAD || git commit -m "Updated from https://github.com/cc65/cc65/commit/${GITHUB_SHA}"
|
||||||
git push
|
git push
|
||||||
|
- name: Package offline documents.
|
||||||
|
run: 7z a cc65-snapshot-docs.zip ./html/*.*
|
||||||
|
- name: Upload a Documents Snapshot Zip
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: cc65-snapshot-docs
|
||||||
|
path: cc65-snapshot-docs.zip
|
||||||
|
|
||||||
# enter secrets under "repository secrets"
|
# enter secrets under "repository secrets"
|
||||||
- name: Upload snapshot to sourceforge
|
- name: Upload 32-bit Windows snapshot to sourceforge
|
||||||
uses: nogsantos/scp-deploy@master
|
uses: nogsantos/scp-deploy@master
|
||||||
with:
|
with:
|
||||||
src: cc65-snapshot-win32.zip
|
src: cc65-snapshot-win32.zip
|
||||||
@@ -132,5 +139,14 @@ jobs:
|
|||||||
port: ${{ secrets.SSH_PORT }}
|
port: ${{ secrets.SSH_PORT }}
|
||||||
user: ${{ secrets.SSH_USER }}
|
user: ${{ secrets.SSH_USER }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
- name: Upload documents snapshot to sourceforge
|
||||||
|
uses: nogsantos/scp-deploy@master
|
||||||
|
with:
|
||||||
|
src: cc65-snapshot-docs.zip
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
remote: ${{ secrets.SSH_DIR }}
|
||||||
|
port: ${{ secrets.SSH_PORT }}
|
||||||
|
user: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
|
||||||
# TODO: Publish snapshot zip at https://github.com/cc65/cc65.github.io
|
# TODO: Publish snapshot zip at https://github.com/cc65/cc65.github.io
|
||||||
|
|||||||
Reference in New Issue
Block a user