Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* testing gh-action * commit deno code * bug * configured name/email of the commit * deno tag * gh-action event * updated readme * force new release * force a new commit * use external repo for deno version * checkout using a PAT * try PAT
- Loading branch information
1 parent
72d5608
commit d1931f0
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Deno | ||
|
||
on: | ||
push: | ||
tags: | ||
- "8.*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Deno environment | ||
uses: denolib/setup-deno@v2.2.0 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Checkout postcss-deno | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: postcss/postcss-deno | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Checkout postcss | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
path: postcss | ||
|
||
- name: Convert the code | ||
run: | | ||
rm -rf deno | ||
deno run --unstable --allow-write --allow-read to_deno.js | ||
deno fmt deno | ||
cp postcss/README.md deno/ | ||
cp postcss/CHANGELOG.md deno/ | ||
cp postcss/LICENSE deno/ | ||
deno test --unstable --allow-read deno/test/* | ||
- name: Get the tag name | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: Commit the changes and create the tag | ||
run: | | ||
git config user.name deno-conversion | ||
git config user.email github-actions@github.com | ||
git add deno | ||
git commit -m "update code" | ||
git push | ||
git tag ${{ steps.get_version.outputs.VERSION }} | ||
git push --tags |
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