Skip to content

Commit c95c233

Browse files
authored
Update pages.yml
1 parent c0a14e0 commit c95c233

File tree

1 file changed

+15
-31
lines changed

1 file changed

+15
-31
lines changed

.github/workflows/pages.yml

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
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]
84
jobs:
9-
pages:
5+
Explore-GitHub-Actions:
106
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
137
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 }}."

0 commit comments

Comments
 (0)