-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add workflow to automate release
- Loading branch information
1 parent
dae36f5
commit a098177
Showing
4 changed files
with
42 additions
and
1 deletion.
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,28 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [ automate-release ] | ||
# pull_request: | ||
# branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: creates release | ||
run: sh ./spec/release.sh # some command from your repository that creates | ||
# output to "source-directory" ("output" in the example) | ||
- name: Pushes to another repository | ||
uses: cpina/github-action-push-to-another-repository@main | ||
env: | ||
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | ||
with: | ||
source-directory: 'output' | ||
destination-github-username: 'wbcsd' | ||
destination-repository-name: 'tr' | ||
user-email: | ||
target-directory: ./temp | ||
target-branch: automated-release-test | ||
create-target-branch-if-needed: true |
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,12 @@ | ||
#!/bin/sh | ||
|
||
cd spec/v2 | ||
pip3 install bikeshed && bikeshed update | ||
make | ||
mkdir -p ../release/diagrams | ||
|
||
for i in diagrams/*.svg; do | ||
cp $i ../release/diagrams/ | ||
done | ||
|
||
cp index.html ../release/ |
Oops, something went wrong.