name
This commit is contained in:
4
.github/workflows/neocities.yml
vendored
4
.github/workflows/neocities.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA
|
github-corners: https://github.com/jaywcjlove/markdown-to-html-cliA
|
||||||
- name: generate posts.html entries
|
- name: generate posts.html entries
|
||||||
run:
|
run:
|
||||||
echo "<li class=\"post\"><a href=\"${{ matrix.value.time }}_${{ matrix.value.dest }}\">${{ matrix.value.dest }}</a></li>" >> public/posts.html
|
echo "<li class=\"post\"><a href=\"${{ matrix.value.dest }}\">${{ matrix.value.name }}</a></li>" >> public/posts.html
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: [ build ]
|
needs: [ build ]
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
- name: finish posts.html
|
- name: finish posts.html
|
||||||
run: |
|
run: |
|
||||||
echo "</ul>" >> ${{ github.workspace }}/public/posts.html
|
echo "</ul>" >> ${{ github.workspace }}/public/posts.html
|
||||||
|
#TODO this turns up empty right now. gotta figure that shit out i think
|
||||||
- name: Deploy to neocities
|
- name: Deploy to neocities
|
||||||
uses: bcomnes/deploy-to-neocities@v1
|
uses: bcomnes/deploy-to-neocities@v1
|
||||||
with:
|
with:
|
||||||
|
@@ -7,7 +7,7 @@ do
|
|||||||
dest="public/posts/$timestamp"
|
dest="public/posts/$timestamp"
|
||||||
dest+="_$filename"
|
dest+="_$filename"
|
||||||
dest+=".html"
|
dest+=".html"
|
||||||
t+="{\"source\":\"$entry\",\"dest\":\"$dest\",\"time\":\"$timestamp\"},"
|
t+="{\"source\":\"$entry\",\"name\":\"$filename\",\"dest\":\"$dest\",\"time\":\"$timestamp\"},"
|
||||||
done
|
done
|
||||||
echo "${t%?}]"
|
echo "${t%?}]"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user