--- /dev/null
+name: build-deploy-assets
+
+on:
+ push:
+ branches: [ master ]
+
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ container: twtug/lkmpg
+
+ steps:
+ - uses: actions/checkout@v3.0.2
+ - name: Build
+ run: |
+ make all
+ make html
+ tar zcvf lkmpg-html.tar.gz ./html
+ - name: Delete old release asset
+ uses: mknejp/delete-release-assets@v1
+ with:
+ token: ${{ github.token }}
+ fail-if-no-assets: false
+ fail-if-no-release: false
+ tag: latest
+ assets: |
+ lkmpg.pdf
+ lkmpg-html.tar.gz
+ - name: Release
+ uses: softprops/action-gh-release@v0.1.14
+ with:
+ files: |
+ lkmpg.pdf
+ lkmpg-html.tar.gz
+ tag_name: "latest"
+ prerelease: true
--- /dev/null
+name: deploy-github-page
+
+on:
+ push:
+ branches: [ master ]
+
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ container: twtug/lkmpg
+
+ steps:
+ - uses: actions/checkout@v3.0.2
+ - name: Build
+ run: |
+ make html
+ - name: Deploy to gh-pages branch
+ uses: peaceiris/actions-gh-pages@v3.8.0
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./html
+ publish_branch: gh-pages
+++ /dev/null
-name: build-deploy-github-page
-
-on:
- push:
- branches: [ master ]
-
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: ubuntu-latest
- container: twtug/lkmpg
-
- steps:
- - uses: actions/checkout@v3.0.2
- - name: Build
- run: |
- make html
- - name: Deploy to gh-pages branch
- uses: peaceiris/actions-gh-pages@v3.8.0
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ./html
- publish_branch: gh-pages
+++ /dev/null
-name: build-deploy-assets
-
-on:
- push:
- branches: [ master ]
-
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: ubuntu-latest
- container: twtug/lkmpg
-
- steps:
- - uses: actions/checkout@v3.0.2
- - name: Build
- run: |
- make all
- make html
- tar zcvf lkmpg-html.tar.gz ./html
- - name: Delete old release asset
- uses: mknejp/delete-release-assets@v1
- with:
- token: ${{ github.token }}
- fail-if-no-assets: false
- fail-if-no-release: false
- tag: latest
- assets: |
- lkmpg.pdf
- lkmpg-html.tar.gz
- - name: Release
- uses: softprops/action-gh-release@v0.1.14
- with:
- files: |
- lkmpg.pdf
- lkmpg-html.tar.gz
- tag_name: "latest"
- prerelease: true