File tree Expand file tree Collapse file tree 1 file changed +15
-31
lines changed Expand file tree Collapse file tree 1 file changed +15
-31
lines changed Original file line number Diff line number Diff line change 1
- name : Pages
2
-
3
- on :
4
- push :
5
- branches :
6
- - main # default branch
7
-
1
+ name : GitHub Actions Demo
2
+ run-name : ${{ github.actor }} is testing out GitHub Actions 🚀
3
+ on : [push]
8
4
jobs :
9
- pages :
5
+ Explore-GitHub-Actions :
10
6
runs-on : ubuntu-latest
11
- permissions :
12
- contents : write
13
7
steps :
14
- - uses : actions/checkout@v2
15
- - name : Use Node.js 20.x
16
- uses : actions/setup-node@v2
17
- with :
18
- node-version : " 20.5.0"
19
- - name : Cache NPM dependencies
20
- uses : actions/cache@v2
21
- with :
22
- path : node_modules
23
- key : ${{ runner.OS }}-npm-cache
24
- restore-keys : |
25
- ${{ runner.OS }}-npm-cache
26
- - name : Install Dependencies
27
- run : npm install
28
- - name : Build
29
- run : npm run build
30
- - name : Deploy
31
- uses : peaceiris/actions-gh-pages@v3
32
- with :
33
- github_token : ${{ secrets.GITHUB_TOKEN }}
34
- publish_dir : ./public
8
+ - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
9
+ - run : echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
10
+ - run : echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
11
+ - name : Check out repository code
12
+ uses : actions/checkout@v4
13
+ - run : echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
14
+ - run : echo "🖥️ The workflow is now ready to test your code on the runner."
15
+ - name : List files in the repository
16
+ run : |
17
+ ls ${{ github.workspace }}
18
+ - run : echo "🍏 This job's status is ${{ job.status }}."
You can’t perform that action at this time.
0 commit comments