Skip to content

Tabris87 patch 1 workflows #18

Tabris87 patch 1 workflows

Tabris87 patch 1 workflows #18

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Create Nightly Release
on:
push:
branches: ["develop"]
pull_request:
branches: ["develop"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- run: npm ci
- name: Configure committer
run: |
git config user.name "Github Actions Bot"
git config user.email "<>"
- run: npm run changelog
- run: npm run deployBuild -- --pre
working-directory: ${{ github.workspace }}
- name: Set release names
id: set_names
run: |
echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.VERSION }}_nightly
release_name: Nightly-Release ${{ env.version }}
body: |
Automatic generated nightly release with the latest features and bugfixes
draft: false
prerelease: true
- name: Upload release artifact
id: upload_release_artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./deployments/journey_recorder_nightly_${{ env.VERSION }}.zip
asset_name: journey_recorder_nightly_${{ env.VERSION }}.zip
asset_content_type: application/zip