Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mismith0227/hugo_theme_pickles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormisumi <mismith0227@users.noreply.github.com>2021-12-04 10:28:14 +0300
committerGitHub <noreply@github.com>2021-12-04 10:28:14 +0300
commitf472e97d2f09b9634c73e1f555c0d0b055e455a5 (patch)
tree4bba66353cafe446de13ca8fc75085dc5167ee0e
parentcefee7598a3b7ef634ea728d843d117eb0a68b37 (diff)
Create release.yml
-rw-r--r--.github/workflows/release.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..a87ec91
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,56 @@
+name: create new branch
+
+on:
+ push:
+ branches: [master]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: checkout master
+ uses: actions/checkout@v2
+ with:
+ ref: master
+
+ - name: Create new Branch
+ env:
+ GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
+ run: |
+ rm -rf .git
+ git init
+ git config --global user.email "ci@example.com"
+ git config --global user.name "CI Action"
+ if [[ ! -f .gitignore ]]; then
+ # Make sure .gitignore exists
+ touch .gitignore
+ fi
+ if ! grep -q .ci-tools .gitignore; then
+ # Add .ci-tools to .gitignore
+ echo "src
+ .editorconfig
+ .travis.yml
+ .gitignore
+ .babelrc
+ ./images
+ webpack.config.js
+ bin
+ gulpfile.js
+ .prettierignore
+ config.js
+ node_modules
+ content
+ package.json
+ svgpack
+ tmp
+ config.toml
+ yarn.lock
+ renovate.json
+ !/exampleSite/config.toml
+ !/exampleSite/content
+ !/exampleSite/static" >> .gitignore
+ fi
+ git add .
+ git commit -m "Deploy from Github Actions"
+ git push --force --quiet "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" master:release