Skip to content

Commit cf74d51

Browse files
committed
Merge branch 'master' of github.com:tmthecoder/portfolio
2 parents f43b8bc + f621158 commit cf74d51

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
git init
2626
git config user.name "CI"
2727
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
3030
git add .
3131
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

.github/workflows/production_push.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# portfolio
22

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
44

5-
Built with Flutter Web and a touch of Github Actions
5+
Built with Flutter Web and a touch of Github Actions.

0 commit comments

Comments
 (0)