Skip to content

Commit

Permalink
ci build ext: publish to release asset, use same name convention as a…
Browse files Browse the repository at this point in the history
…pp, run only on main branch
  • Loading branch information
ikreymer committed Dec 3, 2022
1 parent 8048dd1 commit 0dc0358
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/buildext.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build Extension Zip

on: push
on:
push:
branches:
- main

jobs:
release:
Expand All @@ -22,17 +25,19 @@ jobs:
- name: Yarn Build
run: yarn run build

- name: Create ZIP for Extension
run: |
cd dist/ext
zip ../ext.zip -r ./
- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@main

- name: Create ZIP for Extension
run: |
cd dist/ext
zip ../../ArchiveWeb.page-${{ steps.package-version.outputs.current-version }}-extension.zip -r ./
- name: Upload Extension ZIP
uses: actions/upload-artifact@v3
uses: softprops/action-gh-release@v1
with:
name: archivewebpage-ext-${{ steps.package-version.outputs.current-version}}.zip
path: dist/ext.zip
files: ArchiveWeb.page-${{ steps.package-version.outputs.current-version }}-extension.zip
tag_name: v${{ steps.package-version.outputs.current-version }}
fail_on_unmatched_files: true
draft: true

0 comments on commit 0dc0358

Please sign in to comment.