Release 4.0.2 #7
Workflow file for this run
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: Release Artifacts | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
build_release: | |
name: build_release | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
fetch-depth: 0 | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
# Install dependencies in a ci mode | |
- run: npm ci | |
# Run a lint test to verify the syntax | |
- run: npm run lint | |
# Run all test suites | |
- run: npm run test | |
# Check for issues and compile the base code | |
- run: npm run compile | |
# Minify the application (to ensure minification works without error) | |
- run: npm run minify | |
# Copy CGI-BIN to examples | |
- run: npm run copy_cgi | |
# Ensure necessary CGI-BIN files are executable | |
- run: npm run executable_cgi | |
# Build the deployable tarball | |
# will set variable steps.archive.outputs.filename | |
- name: Generate Archive | |
id: archive | |
run: npm run pack | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
with: | |
draft: false | |
prerelease: false | |
release_name: MarkdownMaster CMS ${{ github.ref }} | |
tag_name: ${{ github.ref }} | |
body_path: RELEASE.md | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload Release | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./release/${{ steps.archive.outputs.filename }} | |
asset_name: ${{ steps.archive.outputs.filename }} | |
asset_content_type: application/gzip |