Skip to content

Use another plugin for release #39

Use another plugin for release

Use another plugin for release #39

Workflow file for this run

name: "release-sass"
on:
push:
branches:
- dev
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 21
- name: "Install npm dependencies"
run: npm install
- name: "Building SASS files"
run: npm run sass
- name: Set up Git Config
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
- name: commit built sass
uses: actions-x/commit@v6
with:
email: [email protected]
name: Autocommiting Built CSS
files: ./dist/*
token: ${{ secrets.MY_SECRET_TOKEN }}
force: true
- name: version
id: version
run: |
echo version=$(npm run version --silent) >> "$GITHUB_OUTPUT"
- name: Tag version
id: tag_version
# if: github.ref == 'refs/heads/master'
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.version.outputs.version }}
- name: Make Css zip
run: |
zip -r cssonly.zip ./dist/*.css
- uses: "marvinpinto/action-automatic-releases@latest"
# if: github.ref == 'refs/heads/master'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ steps.version.outputs.version }}"
prerelease: ${{github.ref == 'refs/heads/master}}

Check failure on line 64 in .github/workflows/build-sass.yml

View workflow run for this annotation

GitHub Actions / release-sass

Invalid workflow file

The workflow is not valid. .github/workflows/build-sass.yml (Line: 64, Col: 25): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
title: "Development Build"
files: |
cssonly.zip