Skip to content

Commit

Permalink
build: publish to v1 branch, deprecated v1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Nov 29, 2020
1 parent 7ecde07 commit 3c2e81c
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 650 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ jobs:
node-version: "12.x"
- run: npm ci
- run: npm run build
- run: rm .gitignore # commit dist folder
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# v1.x is deprecated. Remove with v2
- run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v1.x"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
node_modules
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
steps:
- uses: actions/checkout@master
- run: "date > datetime.txt" # create or update a test.txt file
- uses: gr2m/create-or-update-pull-request-action@v1.x
- uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Customizations
```yml
uses: gr2m/create-or-update-pull-request-action@v1.x
uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -43,7 +43,7 @@ with:
To create multiple commits for different paths, use the action multiple times
```yml
- uses: gr2m/create-or-update-pull-request-action@v1.x
- uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -53,7 +53,7 @@ To create multiple commits for different paths, use the action multiple times
author: "Lorem J. Ipsum <[email protected]>"
path: "cache/"
commit-message: "build: cache"
- uses: gr2m/create-or-update-pull-request-action@v1.x
- uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
Loading

0 comments on commit 3c2e81c

Please sign in to comment.