Skip to content

Commit

Permalink
Merge f2ab02b into 076ec2d
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkfiedler authored Apr 12, 2023
2 parents 076ec2d + f2ab02b commit 9d96b40
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: publish-package

on:
pull_request:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
path: "ddf-ui"

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "16.x"

- name: Install dependencies
run: |
cd ./ddf-ui/ui-frontend/packages/catalog-ui-search
yarn install
- name: Build project
run: |
cd ./ddf-ui/ui-frontend/packages/catalog-ui-search
yarn run build
- name: Set tag name
id: set_tag_name
run: echo ::set-output name=tag_name::pr-${{ github.event.pull_request.number }}-$(echo ${{ github.sha }} | cut -c1-5)

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.set_tag_name.outputs.tag_name }}
release_name: Release ${{ github.sha }}
draft: false
prerelease: false

- name: Upload Asset
id: upload_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ddf-ui/ui-frontend/packages/catalog-ui-search/dist/catalog-ui-search.tgz
asset_name: catalog-ui-search.tgz
asset_content_type: application/gzip

0 comments on commit 9d96b40

Please sign in to comment.