Skip to content

Commit

Permalink
Merge pull request #139 from ericoporto/ci_release_community
Browse files Browse the repository at this point in the history
ci: switch from GH release action to community maintained
  • Loading branch information
morganwillcock authored Jun 3, 2021
2 parents 8f1c9fa + 6a178c3 commit e550946
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 52 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/release.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,14 @@ include(`job.m4')dnl
working-directory: ags-manual.wiki
run: |
"%SYSTEMROOT%\System32\tar.exe" -acvf ..\ags-manual-wiki-md-source.zip *.md images\*
- name: Create release
- name: Create release and upload assets
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Release CHM file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ags-manual/htmlhelp/build/ags-help.chm
asset_name: ags-help.chm
asset_content_type: application/octet-stream
- name: Release wiki source archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ags-manual-wiki-md-source.zip
asset_name: ags-manual-wiki-md-source.zip
asset_content_type: application/zip
artifacts: "ags-manual/htmlhelp/build/ags-help.chm,ags-manual-wiki-md-source.zip"
allowUpdates: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy on GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
32 changes: 6 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,34 +107,14 @@ jobs:
working-directory: ags-manual.wiki
run: |
"%SYSTEMROOT%\System32\tar.exe" -acvf ..\ags-manual-wiki-md-source.zip *.md images\*
- name: Create release
- name: Create release and upload assets
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Release CHM file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ags-manual/htmlhelp/build/ags-help.chm
asset_name: ags-help.chm
asset_content_type: application/octet-stream
- name: Release wiki source archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ags-manual-wiki-md-source.zip
asset_name: ags-manual-wiki-md-source.zip
asset_content_type: application/zip
artifacts: "ags-manual/htmlhelp/build/ags-help.chm,ags-manual-wiki-md-source.zip"
allowUpdates: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy on GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit e550946

Please sign in to comment.