Skip to content

Commit

Permalink
Cut a release of the embedded compiler after Dart Sass releases (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jan 27, 2022
1 parent 69077dd commit f8f08bc
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -433,3 +433,32 @@ jobs:
- name: Deploy
run: tool/github-action/deploy/heroku.sh
env: {HEROKU_TOKEN: "${{ secrets.HEROKU_TOKEN }}"}

release_embedded_compiler:
name: "Release Embedded Compiler"
runs-on: ubuntu-latest
needs: [deploy_pub]
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"

steps:
- uses: actions/checkout@v2
with:
repository: sass/dart-sass-embedded
token: ${{ secrets.GH_TOKEN }}

- name: Get version
id: version
run: echo "::set-output name=version::${GITHUB_REF##*/}"

- name: Update version
run: >
sed -i 's/version: .*/version: ${{ steps.version.outputs.version }}/' pubspec.yaml
dart pub remove sass
dart pub add sass:${{ steps.version.outputs.version }}
- uses: EndBug/add-and-commit@v8
with:
author_name: Sass Bot
author_email: sass.bot.beep.boop@gmail.com
message: Update Dart Sass version and release
tag: ${{ steps.version.outputs.version }}

0 comments on commit f8f08bc

Please sign in to comment.