Skip to content

Commit

Permalink
feat: created new workflow for release zip with current version (#54)
Browse files Browse the repository at this point in the history
* 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
julianramirez2 authored Nov 2, 2023
1 parent de0da1c commit 2365439
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/upload-release-zip.yml
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

0 comments on commit 2365439

Please sign in to comment.