Skip to content

Commit

Permalink
Merge pull request #152 from tykayn/2024-pages
Browse files Browse the repository at this point in the history
feat: ⚡ add 2024 folder and data about contribution call
  • Loading branch information
vdct authored Mar 12, 2024
2 parents 28c5ee8 + 10b0f56 commit 5aec49b
Show file tree
Hide file tree
Showing 64 changed files with 3,011 additions and 1,799 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Workflow for building and deploying a static site to GitHub Pages
name: Deploy static site with GitHub Pages dependencies preinstalled

env:
# Year of site
YEAR: "2024"

on:
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./${{ env.YEAR }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: ls
- name: Install dependencies
run: npm install
- name: Build site
run: npm run build --if-present

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./${{ env.YEAR }}/dist"

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/node_modules/
**/package-lock.json
.idea
.idea
*/dist/
23 changes: 11 additions & 12 deletions 2023/gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
// libraries
const data = require("gulp-data");
const fs = require("fs");
const gulp = require("gulp");
const header = require("gulp-header");
const nunjucksRender = require("gulp-nunjucks-render");
import fs from "fs";
import gulp from "gulp";
import data from "gulp-data";
import header from "gulp-header";
import nunjucksRender from "gulp-nunjucks-render";

// dev tools
const browserSync = require("browser-sync").create();
import browserSync from "browser-sync";

function html() {
export function html() {
const conferencesData = JSON.parse(fs.readFileSync("scripts/conferences.json"));
return gulp
.src("scripts/nunjucks/templates/programme.html")
.pipe(data({conferencesData}))
.pipe(data({ conferencesData }))
.pipe(nunjucksRender())
.pipe(header("\n\n<!-- This file generated, do not edit it manually. Instructions in the README. -->\n\n\n"))
.pipe(gulp.dest("."));
}

function serve() {
function _serve() {
browserSync.init({
open: false,
server: {
Expand All @@ -42,6 +42,5 @@ function watchFiles() {
return;
}

exports.html = html;
exports.serve = gulp.parallel(html, watchFiles, serve);
exports.build = gulp.series(html);
const serve = gulp.parallel(html, watchFiles, _serve);
export { serve, html as build };
8 changes: 3 additions & 5 deletions 2023/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"name": "sotmfr-2023",
"type": "module",
"scripts": {
"dev": "gulp serve",
"build": "gulp build"
},
"dependencies": {
"fancy-log": "^1.3.3",
"gulp": "^4.0.2",
"gulp-beautify": "^3.0.0",
"gulp-clean": "^0.4.0",
"gulp-data": "^1.3.1",
"gulp-nunjucks": "^5.1.0",
"gulp-nunjucks": "^6.0.0",
"gulp-nunjucks-render": "^2.2.3"
},
"devDependencies": {
"browser-sync": "^2.29.3",
"browser-sync": "^3.0.2",
"gulp-header": "^2.0.9"
}
}
157 changes: 0 additions & 157 deletions 2023/scripts/generateFrab.js

This file was deleted.

Loading

0 comments on commit 5aec49b

Please sign in to comment.