🐳 Publish ARAM #402
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🐳 Publish ARAM | |
on: | |
workflow_run: | |
workflows: ["Scheduled Publish"] | |
types: | |
- completed | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Download && Execute | |
env: | |
GH_TOKEN: ${{ secrets.GH_DOWNLOAD_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
release_name=$(gh api -H "Accept: application/vnd.github+json" /repos/cangzhang/data-maker/releases/latest --jq ".name") | |
gh release download "$release_name" -R cangzhang/data-maker -p "*-linux*" -D bin | |
cd bin && chmod +x data-maker-linux-amd64 && mv data-maker* data-maker | |
./data-maker -v && ./data-maker -aram | |
npm install -g --quiet @jsdevtools/npm-publish | |
curl https://gist.githubusercontent.com/cangzhang/1bdb2f37e4c5770ac703ee5afec600f5/raw/ci-publish.sh -o publish.sh && chmod +x publish.sh | |
./publish.sh | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: packages | |
path: | | |
bin/output/* |