Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
jobs:
deploy-npm-module:
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.set-project.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -26,6 +28,7 @@ jobs:
PROJECT="RunConditionTable"
echo "Identified project: $PROJECT with version: $VERSION"
echo "PROJECT=$PROJECT" >> $GITHUB_ENV
echo "version=$VERSION" >> $GITHUB_OUTPUT
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
Expand All @@ -43,18 +46,13 @@ jobs:
- name: Install production dependencies
run: npm install --only=production
- name: Create package tarball
run: echo ::set-output name=tgz_name::$(npm pack)
run: echo "tgz_name=$(npm pack)" >> $GITHUB_OUTPUT
id: tgz
- name: Upload tarball to GH release assets
uses: actions/upload-release-asset@v1
id: upload
- name: Upload tarball to release assets via GH CLI
working-directory: ./RunConditionTable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_content_type: application/tar+gzip
asset_path: ./${{ steps.tgz.outputs.tgz_name }}
asset_name: ${{ steps.tgz.outputs.tgz_name }}
run: gh release upload @aliceo2/run-condition-table@${{ needs.deploy-npm-module.outputs.VERSION }} ${{ steps.tgz.outputs.tgz_name }}
- name: Upload TARball to S3
uses: awegrzyn/s3-put-action@v1
with:
Expand Down