Skip to content

Merge branch 'production' into development #39

Merge branch 'production' into development

Merge branch 'production' into development #39

Workflow file for this run

name: Create Archive
on:
push:
branches: ["development"]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')"
- name: Test with environment variables
run: echo $TAG_NAME - $RELEASE_NAME
env:
TAG_NAME: ${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}
RELEASE_NAME: ${{ steps.extract_branch.outputs.branch }} Build ${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}
- name: Checkout
uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build
- name: Archive Release
uses: thedoctor0/zip-release@0.7.1
with:
type: "zip"
filename: "release.zip"
exclusions: "*.git* .vscode* .editorconfig"
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: "nightly-tag-${{ steps.date.outputs.date }}"
artifacts: "release.zip"
prerelease: true