File tree Expand file tree Collapse file tree 1 file changed +26
-14
lines changed
Expand file tree Collapse file tree 1 file changed +26
-14
lines changed Original file line number Diff line number Diff line change 1- name : GitHub Actions Demo
2- run-name : ${{ github.actor }} is testing out GitHub Actions 🚀
3- on : [push]
41jobs :
5- Explore-GitHub-Actions :
2+ # Build job
3+ build :
4+ # Specify runner + build & upload the static files as an artifact
65 runs-on : ubuntu-latest
76 steps :
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
7+ - name : Build static files
8+ id : build
169 run : |
17- ls ${{ github.workspace }}
18- - run : echo "🍏 This job's status is ${{ job.status }}."
10+ # <Not provided for brevity>
11+ # At a minimum this step should build the static files of your site
12+ # <Not provided for brevity>
13+
14+ - name : Upload static files as artifact
15+ id : deployment
16+ uses : actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
17+ with :
18+ path : build_outputs_folder/
19+
20+ # Deployment job
21+ deploy :
22+ environment :
23+ name : github-pages
24+ url : ${{ steps.deployment.outputs.page_url }}
25+ runs-on : ubuntu-latest
26+ needs : build
27+ steps :
28+ - name : Deploy to GitHub Pages
29+ id : deployment
30+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments