-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: created new workflow for release zip with current version (#54)
* fix: generating zip file after release * fix: corrected ci workflow, deleted creation of zip * feat: created new workflow for release zip, current version * refactor: changed zip name to openedx commerce
- Loading branch information
1 parent
de0da1c
commit 2365439
Showing
2 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,18 +84,6 @@ jobs: | |
commit_sha: ${{ needs.bumpversion.outputs.bump_commit_sha }} | ||
default_bump: false | ||
default_prerelease_bump: false | ||
|
||
- name: Install Composer dependencies | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--no-dev" | ||
|
||
- name: Archive Release | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'openedx-woocommerce-plugin.zip' | ||
exclusions: '*.git*' | ||
|
||
- name: Create a GitHub release | ||
if: steps.tag_version.outputs.new_tag | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build & Upload zip | ||
|
||
# Only trigger, when the build workflow succeeded | ||
on: | ||
workflow_run: | ||
workflows: ["Continuous Integration"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
upload_zip: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.WC_PAT }} | ||
|
||
- name: Install Composer dependencies | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--no-dev" | ||
|
||
- name: Archive Release | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'openedx-commerce.zip' | ||
exclusions: '*.git*' | ||
|
||
- name: Upload zip to latest release | ||
uses: xresloader/upload-to-github-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WC_PAT }} | ||
with: | ||
file: "openedx-commerce.zip" | ||
update_latest_release: true | ||
draft: false |