File tree Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 25
25
git init
26
26
git config user.name "CI"
27
27
git config user.email "[email protected] "
28
- git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/portfolio-web-source .git
29
- git checkout -b main
28
+ git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/portfolio.git
29
+ git checkout -b preview
30
30
git add .
31
31
git commit -m "Updated built website from code in @tmthecoder/portfolio"
32
- git push --force secure-origin main
32
+ git push --force secure-origin preview
Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : Upgrade Website to Production
4
+
5
+ # Controls when the workflow will run
6
+ on :
7
+ # Allows you to run this workflow manually from the Actions tab
8
+ workflow_dispatch :
9
+
10
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
11
+ jobs :
12
+ # This workflow contains a single job called "build"
13
+ build :
14
+ # The type of runner that the job will run on
15
+ runs-on : ubuntu-latest
16
+
17
+ # Steps represent a sequence of tasks that will be executed as part of the job
18
+ steps :
19
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20
+ - uses : actions/checkout@v3
21
+ with :
22
+ ref : ' preview'
23
+ fetch-depth : ' 0'
24
+
25
+ # Runs a set of commands using the runners shell
26
+ - name : Create & Push to Production
27
+ run : |
28
+ git config user.name "CI"
29
+ git config user.email "[email protected] "
30
+ git checkout -b production
31
+ git add .
32
+ git push --force -u origin production
Original file line number Diff line number Diff line change 1
1
# portfolio
2
2
3
- My portfolio page, currently hosted on Cloudflare Pages at the domain https://tmthecoder.dev
3
+ My portfolio page, currently hosted on Cloudflare Pages at https://tmthecoder.dev
4
4
5
- Built with Flutter Web and a touch of Github Actions
5
+ Built with Flutter Web and a touch of Github Actions.
You can’t perform that action at this time.
0 commit comments