Skip to content

Commit

Permalink
Attempt at release action.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jan 12, 2023
1 parent ee151d0 commit e1e86cd
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/package-zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Packaging a release + zip

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run build
- name: Zip
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'openlab-attributions.zip'
exclusions: '*.git* /*node_modules/* vendor composer.* package.json package-lock.json phpcs.xml.dist'

- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: "openlab-attributions.zip"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e1e86cd

Please sign in to comment.