Skip to content

Commit

Permalink
Separate jobs as I cannot make release steps to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Parisot committed Aug 31, 2021
1 parent 9d0750b commit b629496
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build

on:
push:
pull_request:

jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Test and package the extension
uses: oncletom/yeswiki-release-action@v1
with:
extension-name: yeswiki-extension-publication
extension-version: ${{ github.ref }}
9 changes: 6 additions & 3 deletions .github/workflows/main.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
on: [push]
name: Release

on:
release:
types:
- published

jobs:
package:
Expand All @@ -18,7 +23,6 @@ jobs:
echo "${{ steps.release.outputs.archive-name }} md5sum is ${{ steps.release.outputs.md5sum }}"
- name: Upload zip file
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,7 +33,6 @@ jobs:
asset_content_type: application/zip

- name: Upload md5 file
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit b629496

Please sign in to comment.