Skip to content

Commit

Permalink
feat: created new workflow for release zip, current version
Browse files Browse the repository at this point in the history
  • Loading branch information
julianramirez2 authored Oct 20, 2023
1 parent 842e72c commit bdacd17
Showing 1 changed file with 38 additions and 0 deletions.
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-ecommerce.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-ecommerce.zip"
update_latest_release: true
draft: false

0 comments on commit bdacd17

Please sign in to comment.