Skip to content

updates paths to dist artifacts #5

updates paths to dist artifacts

updates paths to dist artifacts #5

Workflow file for this run

name: Build and Release
on:
push:
branches:
- release/package
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Build the project
run: yarn build
- name: Copy package.json
run: cp ./package.json ./dist
- name: Archive dist folder
run: tar -czvf gfx-perp-sdk.tar.gz dist
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Release ${{ github.run_number }}
draft: false
prerelease: false
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./gfx-perp-sdk.tar.gz
asset_name: gfx-perp-sdk.tar.gz
asset_content_type: application/gzip