Skip to content

Commit

Permalink
Merge branch 'main' into fixed-YoshithaRathnayake#165
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshithaRathnayake authored May 7, 2024
2 parents 921936c + eace043 commit 5048e9a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 63 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy a preview into NEW-YOSHITHA-WEBSITE-preview.surge.sh

on:
push:
branches: [ feature-v5 ]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Install packages
run: npm install

- name: Install bundle
run: bundle install

- name: Build the app
run: jekyll build

- name: Install Surge
run: npm install -g surge

- name: Deploy to surge
run: surge ./_site https://NEW-YOSHITHA-WEBSITE-preview.surge.sh/ --token ${{secrets.SURGE_TOKEN}}
39 changes: 26 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
# This is the work flow to generate preview links for Pull Requests
name: PR-Preview-Generator
name: Preview-Link-Generator
on:
pull_request:
branches:
- main
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Using Node.js
uses: actions/setup-node@v1
- uses: actions/setup-node@v2-beta
with:
node-version: '12.x'
- name: Installing Surge
run: npm i -g surge
- name: Deploying on Surge
node-version: '12'
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Install packages
run: npm install

- name: Install bundle
run: bundle install

- name: Build the app
run: jekyll build

- name: Install Surge
run: npm install -g surge

- name: Deploy to surge
env:
SURGE_LOGIN: Y.S.B.Rathnayake2008@gmail.com
SURGE_TOKEN: 4f75270ec1d0e4d48c5ecc3959f9d888
SURGE_LOGIN: yoshithasbrathnayake@gmail.com
SURGE_TOKEN: acb9d89132e778a11f8bf1fea973b9fc
DEPLOY_DOMAIN: https://pr-${{ github.event.number }}-NEW-YOSHITHA-WEBSITE.surge.sh
run: surge ./ $DEPLOY_DOMAIN --token $SURGE_TOKEN
run: surge ./_site/ $DEPLOY_DOMAIN --token $SURGE_TOKEN
50 changes: 0 additions & 50 deletions .github/workflows/pages.yml

This file was deleted.

0 comments on commit 5048e9a

Please sign in to comment.