Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

actions: fix artifact naming #8

actions: fix artifact naming

actions: fix artifact naming #8

Workflow file for this run

name: Build
on:
push:
branches:
- '*'
tags:
- '*'
- '!v*' # Don't run on version tags, instead the release workflow will include this file and call the build step
workflow_call: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .npmrc
run: cp tools/_.npmrc .npmrc
- name: Cache node_modules/
uses: actions/cache@v4
with:
path: node_modules
key: node_modules
- name: Install node_modules/
uses: docker://node:18.20.8-alpine3.21
with:
args: yarn --silent install --frozen-lockfile
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_RO }}
- name: Build the release
uses: docker://node:18.20.8-alpine3.21
with:
entrypoint: tools/build.sh
env:
EMBEDLY_KEY: ${{ secrets.EMBEDLY_KEY }}
- name: Create compilation artifact
run: tar -cf ../dist.tar *
working-directory: dist
- uses: actions/upload-artifact@v4
with:
name: dist.tar
path: dist.tar
retention-days: 1