File tree Expand file tree Collapse file tree 7 files changed +57
-11
lines changed Expand file tree Collapse file tree 7 files changed +57
-11
lines changed Original file line number Diff line number Diff line change 6
6
permissions :
7
7
contents : write
8
8
jobs :
9
+ precheck :
10
+ runs-on : ubuntu-latest
11
+ outputs :
12
+ should_deploy : ${{ steps.check.outputs.should_deploy }}
13
+ steps :
14
+ - name : Check if this is the template
15
+ id : check
16
+ run : |
17
+ if [ "${{ github.repository }}" = "jazzsequence/profile.github.io" ]; then
18
+ echo "should_deploy=false" >> $GITHUB_ENV
19
+ echo "Actions running on parent repository. Deploy to GitHub pages will be skipped."
20
+ else
21
+ echo "should_deploy=true" >> $GITHUB_ENV
22
+ echo "Actions running on forked repository. Deploying to GitHub is enabled."
23
+ fi
24
+ env :
25
+ GITHUB_OUTPUT : $GITHUB_ENV
9
26
deploy :
10
27
runs-on : ubuntu-latest
11
-
28
+ if : needs.precheck.outputs.should_deploy == 'true'
12
29
steps :
13
30
- name : Checkout
14
31
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 9
9
# Dependency directories
10
10
node_modules /
11
11
12
- # Don't version control package-lock.json
12
+ # Don't version control the package-lock.json
13
13
package-lock.json
14
14
15
15
# Don't version control the actual user links.
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ Read the [README](https://github.com/jazzsequence/profile.github.io#how-does-it-
19
19
1 . Make sure you have Node ** 16** installed and active. If using [ nvm] ( https://github.com/nvm-sh/nvm ) , run ` nvm use 16 ` to switch to Node 16.
20
20
2 . Assuming you already have a copy of the repository cloned, make your changes in ` src/details.js ` . You can test locally by running ` npm run dev ` or just build the changes with ` npm run build ` .
21
21
3 . Commit your changes and push to GitHub.
22
- 4 . Run ` npm run deploy ` to deploy your changes to GitHub Pages.
22
+ 4 . Run ` npm run deploy ` to deploy your changes to GitHub Pages.
Original file line number Diff line number Diff line change
1
+ const gulp = require ( 'gulp' ) ,
2
+ sass = require ( 'gulp-sass' ) ( require ( 'sass' ) ) ,
3
+ del = require ( 'del' ) ;
4
+
5
+ gulp . task ( 'styles' , ( ) => {
6
+ return gulp . src ( 'src/assets/sass/**/*.scss' )
7
+ . pipe ( sass ( ) . on ( 'error' , sass . logError ) )
8
+ . pipe ( gulp . dest ( './src/assets/' ) ) ;
9
+ } ) ;
10
+
11
+ gulp . task ( 'clean' , ( ) => {
12
+ return del ( [
13
+ 'src/assets/style.css' ,
14
+ ] ) ;
15
+ } ) ;
16
+
17
+ gulp . task ( 'build' , gulp . series ( [ 'clean' , 'styles' ] ) ) ;
18
+
19
+ gulp . task ( 'watch' , ( ) => {
20
+ gulp . watch ( 'src/assets/sass/**/*.scss' , ( done ) => {
21
+ gulp . series ( [ 'clean' , 'styles' ] ) ( done ) ;
22
+ } ) ;
23
+ } ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sapling-chain" ,
3
- "version" : " 1.1 .1" ,
3
+ "version" : " 1.2 .1" ,
4
4
"description" : " Create a tree of hyperlinks that can be used in social media profiles. 🔗🌲😂" ,
5
5
"author" :
" Chris Reynolds <[email protected] >" ,
6
6
"license" : " GPL-3.0-or-later" ,
7
+ "type" : " commonjs" ,
7
8
"main" : " index.js" ,
8
9
"homepage" : " " ,
9
10
"repository" : {
Original file line number Diff line number Diff line change @@ -109,4 +109,4 @@ body a.fork-me {
109
109
.wrap .links--single a : visited : hover ,
110
110
.wrap .links--single a : visited : active {
111
111
border-bottom : 1px transparent;
112
- }
112
+ }
Original file line number Diff line number Diff line change @@ -11,31 +11,36 @@ const links = [
11
11
icon : "link" ,
12
12
// Refer to FontAwesome documentation to determine if an icon should be a fas or fab. (Brands are fab, so most will be fab.)
13
13
// https://fontawesome.com/icons?d=gallery&p=2&m=free
14
- prefix : "fas"
14
+ prefix : "fas" ,
15
+ rel : "me"
15
16
} ,
16
17
{
17
18
name : "Twitter" ,
18
19
url : "https://twitter.com/yourusername" ,
19
20
icon : "twitter" ,
20
- prefix : "fab"
21
+ prefix : "fab" ,
22
+ rel : "me"
21
23
} ,
22
24
{
23
25
name : "Facebook" ,
24
26
url : "https://facebook.com/yourusername" ,
25
27
icon : "facebook" ,
26
- prefix : "fab"
28
+ prefix : "fab" ,
29
+ rel : "me"
27
30
} ,
28
31
{
29
32
name : "YouTube" ,
30
33
url : "https://youtube.com/yourchannel" ,
31
34
icon : "youtube" ,
32
- prefix : "fab"
35
+ prefix : "fab" ,
36
+ rel : "me"
33
37
} ,
34
38
{
35
39
name : "GitHub" ,
36
40
url : "https://github.com/yourusername" ,
37
41
icon : "github" ,
38
- prefix : "fab"
42
+ prefix : "fab" ,
43
+ rel : "me"
39
44
}
40
45
] ;
41
46
@@ -64,4 +69,4 @@ export { profile };
64
69
export { colorScheme } ;
65
70
export { links } ;
66
71
67
- export default details ;
72
+ export default details ;
You can’t perform that action at this time.
0 commit comments