Skip to content

Commit e63abd7

Browse files
authored
Initial commit
0 parents  commit e63abd7

20 files changed

+981
-0
lines changed

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env*.local
29+
30+
# vercel
31+
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright GitHub
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Project repository for the Pluralsight course, GitHub Actions: The Big Picture
2+
3+
This repository contains the core web application files and configuration you'll need to follow along in the Pluralsight course, GitHub Actions: The Big Picture.
4+
5+
To follow along with the step-by-step instructions in the Essentials module, you will need to create a copy of this repository by doing the following:
6+
1. Click **Use this template** above the file list and select **Create a new repository**.
7+
2. Use the **Owner** dropdown menu to select the account you want to own the repository.
8+
3. Name your repository something fun and add a simple description to make it easier to identify later.
9+
4. Set the default visibility for the repo to public, as private repositories use Actions minutes, while public repositories can use GitHub-hosted runners for free.
10+
11+
Click Create repository from template and we’re ready to build our first Actions workflow!
12+

SUPPORT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Support
2+
3+
This repo contains supplemental content for the [GitHub Actions learning pathway](https://resources.github.com/learn/pathways).
4+
5+
**actions-learning-pathway** is not an open source project, but rather supplemental demo content maintained by GitHub staff. We encourage users to direct questions to the [Community of Discussions](https://github.com/orgs/community/discussions/) or reference [GitHub Docs](https://docs.github.com/en).
6+
7+
## GitHub Support Policy
8+
9+
Support for this project is limited to the resources listed above.

demo-files/build-test-deploy.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: build-test-deploy
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: checkout repo
8+
uses: actions/checkout@v4
9+
- name: use node.js
10+
uses: actions/setup-node@v4
11+
with:
12+
node-version: '20.x'
13+
- run: npm install
14+
- run: npm run build
15+
16+
test:
17+
needs: build
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: checkout repo
21+
uses: actions/checkout@v4
22+
- name: use node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20.x'
26+
- run: npm install
27+
- run: npm test
28+
29+
deploy:
30+
needs: test
31+
32+
permissions:
33+
contents: write
34+
pages: write
35+
id-token: write
36+
37+
environment:
38+
name: production
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- name: checkout repo
45+
uses: actions/checkout@v4
46+
with:
47+
token: ${{ secrets.GITHUB_TOKEN }}
48+
- name: use node.js
49+
uses: actions/setup-node@v4
50+
with:
51+
node-version: '20.x'
52+
- name: configure github pages
53+
uses: actions/configure-pages@v4
54+
with:
55+
static_site_generator: next
56+
- run: npm install
57+
- run: npm run build
58+
- name: upload artifacts
59+
uses: actions/upload-pages-artifact@v3
60+
with:
61+
path: './out'
62+
- name: deploy

demo-files/hello-world.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: hello-world
2+
3+
on: push
4+
5+
jobs:
6+
hello-world-job:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out repository code
12+
uses: actions/checkout@v3
13+
- run: echo "$(cat hello_world.txt)"

hello_world.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello! And congrats, you've succesfully built and run your first GitHub Actions workflow file!

jsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./*"]
5+
}
6+
}
7+
}

next.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
output: 'export',
4+
5+
images: {
6+
unoptimized: true,
7+
},
8+
9+
reactStrictMode: true,
10+
}
11+
12+
module.exports = nextConfig

0 commit comments

Comments
 (0)