Skip to content

Commit

Permalink
Merge pull request #277 from ntt-developers/launch_2024
Browse files Browse the repository at this point in the history
🚀 Launch 2024
  • Loading branch information
1484 authored Feb 16, 2024
2 parents bcbcbf7 + 4590a66 commit 42a2f7d
Show file tree
Hide file tree
Showing 42 changed files with 16,287 additions and 42 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/deploy-preview-to-firebase-hosting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ on:
- opened
- synchronize
env:
NODE_VERSION: 19
NODE_VERSION: 20
PREVIEW_EXPIRES: 7d
WORKING_DIRECTORY: "2023"
WORKING_DIRECTORY: "2024"
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
Expand All @@ -29,7 +29,7 @@ jobs:
run: npm run build
working-directory: ${{ env.WORKING_DIRECTORY }}
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: public_${{ github.sha }}
path: ${{ env.WORKING_DIRECTORY }}/public/*
Expand All @@ -40,15 +40,15 @@ jobs:
- build
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/package-lock.json
# https://github.com/actions/download-artifact
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: public_${{ github.sha }}
path: ${{ env.WORKING_DIRECTORY }}/public
Expand All @@ -64,20 +64,20 @@ jobs:
- lint
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/package-lock.json
# https://github.com/actions/download-artifact
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: public_${{ github.sha }}
path: ${{ env.WORKING_DIRECTORY }}/public
# https://github.com/google-github-actions/auth
- uses: google-github-actions/auth@v1
- uses: google-github-actions/auth@v2
with:
create_credentials_file: true
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
Expand Down Expand Up @@ -112,15 +112,15 @@ jobs:
- deploy
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/package-lock.json
# https://github.com/google-github-actions/auth
- uses: google-github-actions/auth@v1
- uses: google-github-actions/auth@v2
with:
create_credentials_file: true
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
Expand All @@ -134,7 +134,7 @@ jobs:
echo "url=${url}" >> ${GITHUB_OUTPUT}
working-directory: ${{ env.WORKING_DIRECTORY }}
# https://github.com/actions/github-script
- uses: actions/github-script@v6
- uses: actions/github-script@v7
env:
URL: ${{ steps.firebase_hosting_channel_open.outputs.url }}
with:
Expand Down
34 changes: 15 additions & 19 deletions .github/workflows/deploy-to-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,28 @@ on:
branches:
- master
env:
NODE_VERSION: 19
WORKING_DIRECTORY: "2023"
NODE_VERSION: 20
WORKING_DIRECTORY: "2024"
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/package-lock.json
- name: npm ci
run: |
npm ci --production
run: npm ci --production
working-directory: ${{ env.WORKING_DIRECTORY }}
- name: npm run build
run: |
npm run build
run: npm run build
working-directory: ${{ env.WORKING_DIRECTORY }}
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: public_${{ github.sha }}
path: ${{ env.WORKING_DIRECTORY }}/public/*
Expand All @@ -38,26 +36,24 @@ jobs:
- build
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: git config
run: |
git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --local user.name "${GITHUB_ACTOR}"
- name: git fetch & git checkout
run: |
git fetch origin gh-pages
git checkout gh-pages
git checkout ${GITHUB_SHA} README.md
- name: git checkout
run: git checkout ${GITHUB_SHA} README.md
- name: rm
run: |
rm -rf ${WORKING_DIRECTORY}
run: rm -rf ${WORKING_DIRECTORY}
# https://github.com/actions/download-artifact
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: public_${{ github.sha }}
path: ${{ env.WORKING_DIRECTORY }}
- name: git add & git commit & git push
run: |
git add README.md ${WORKING_DIRECTORY}
git commit -a --amend -m 'Automatic build by GitHub Actions'
git push -f origin gh-pages:gh-pages
git push -fu origin gh-pages
5 changes: 5 additions & 0 deletions 2024/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "ntt-tech-conference"
}
}
142 changes: 142 additions & 0 deletions 2024/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
firebase-debug.log*
firebase-debug.*.log*

# Firebase cache
.firebase/

# Firebase config

# Uncomment this if you'd like others to create their own Firebase project.
# For a team working on the same Firebase project(s), it is recommended to leave
# it commented so all members can deploy to the same project(s) in .firebaserc.
# .firebaserc

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
1 change: 1 addition & 0 deletions 2024/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
3 changes: 3 additions & 0 deletions 2024/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 65536
}
36 changes: 36 additions & 0 deletions 2024/.textlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"plugins": {
"html": true
},
"rules": {
"preset-ja-spacing": {
"ja-no-space-between-full-width": false,
"ja-space-around-code": {
"after": true,
"before": true
},
"ja-space-between-half-and-full-width": {
"exceptPunctuation": true,
"space": "always"
}
},
"preset-ja-technical-writing": {
"ja-no-mixed-period": {
"allowPeriodMarks": [":"]
},
"ja-no-weak-phrase": false,
"no-doubled-joshi": {
"allow": ["か", "で"],
"strict": false
},
"max-kanji-continuous-len": {
"allow": [],
"max": 6
},
"no-exclamation-question-mark": false,
"sentence-length": {
"max": 200
}
}
}
}
19 changes: 19 additions & 0 deletions 2024/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## NTT Tech Conference 2024

### How to build

```
$ npm install
$ npm run-script build
```

### How to deploy

See `.github/workflows`

### References

- [MUSUBii](https://musubii.qranoko.jp/)
- [Font Awesome](https://fontawesome.com/)
- [Micromodal.js](https://micromodal.vercel.app/)
- [Tabby](https://github.com/cferdinandi/tabby)
10 changes: 10 additions & 0 deletions 2024/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
Loading

0 comments on commit 42a2f7d

Please sign in to comment.