Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes #37

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Deploy

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install dependencies
run: mkdir build

- name: Build React app
run: cd build && echo "hello" > test.txt

- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: build

deploy:
runs-on: shahzaib
needs: build

steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts

- name: Copy build folder to self-hosted runner
run: |
ls
pwd
#cp -R ${{ github.workspace }}/build/* C:\Users\Administrator\Desktop
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"prettier.configPath": "",
"prettier.useTabs": true,
"prettier.withNodeModules": true,
"prettier.vueIndentScriptAndStyle": false
"prettier.vueIndentScriptAndStyle": false,
"githubPullRequests.ignoredPullRequestBranches": [
"master"
]
}
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
agent {
docker {
image 'node:lts-alpine'
args '-u root:root'
args '-u root:root'sasasdsa
}
}
steps{
Expand Down Expand Up @@ -47,6 +47,7 @@ pipeline {
sh './scripts/deploy-for-production.sh'
input message: 'Finished using the web site? (Click "Proceed" to continue)'
sh './scripts/kill.sh'
sh 'ls'
}
}
}
Expand Down