Skip to content

Commit

Permalink
Migrar site para Docusaurus (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yudi authored Mar 18, 2024
1 parent 47469b8 commit 3c13b35
Show file tree
Hide file tree
Showing 193 changed files with 11,154 additions and 27,739 deletions.
17 changes: 0 additions & 17 deletions .browserslistrc

This file was deleted.

16 changes: 0 additions & 16 deletions .editorconfig

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

51 changes: 0 additions & 51 deletions .eslintrc.json

This file was deleted.

16 changes: 0 additions & 16 deletions .firebaserc

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- '**'

pull_request:
branches:
- main


jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Build-artifacts
path: build/
71 changes: 30 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,55 @@
name: main
name: Deploy

on: [push, pull_request]
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
cache-dependency-path: package-lock.json
cache: 'yarn'

- name: Install dependencies
run: npm ci
run: yarn install --frozen-lockfile

- name: Generate licenses disclaimer
run: yarn licenses generate-disclaimer > static/licenses.txt

- name: Build for production
run: npm run build -- --configuration=production
- name: Build
run: yarn build

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Build-artifacts
path: www/
path: build/

deploy:
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: Build-artifacts
path: www/

- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CACIC_FCT }}'
channelId: live
projectId: cacic-fct

- name: Create release
id: create_release
uses: actions/create-release@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
[Changelog](https://github.com/cacic-fct/fct-app/blob/main/Changelog.md)
draft: false
prerelease: false
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
92 changes: 15 additions & 77 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,85 +1,23 @@
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

*~
*.sw[mnpcod]
.tmp
*.tmp
*.tmp.*
*.sublime-project
*.sublime-workspace
.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
$RECYCLE.BIN/

*.log
log.txt
npm-debug.log*

/.idea
/.ionic
/.sass-cache
/.sourcemaps
/.versions
/.vscode
/coverage
/dist
# Dependencies
/node_modules
/platforms
/plugins
/www

/dist/
/bazel-out
/integration/bazel/bazel-*
*.log

# Include when developing application packages.
pubspec.lock
.c9
.idea/
.devcontainer/*
!.devcontainer/README.md
!.devcontainer/recommended-devcontainer.json
!.devcontainer/recommended-Dockerfile
.settings/
*.swo
*.swp
modules/.settings
modules/.vscode
.vimrc
.nvimrc

# Don't check in secret files
*secret.js

# Ignore npm/yarn debug log
npm-debug.log
yarn-error.log
# Production
/build

# build-analytics
.build-analytics
# Generated files
.docusaurus
.cache-loader

# rollup-test output
/modules/rollup-test/dist/

# User specific bazel settings
.bazelrc.user

# User specific ng-dev settings
.ng-dev.user*

.notes.md
baseline.json

# Ignore .history for the xyz.local-history VSCode extension
.history

.angular
# Firebase
.firebase
*-debug.log
.runtimeconfig.json
# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

.eslintcache
npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ coverage
/dist
/.github
/node_modules
*.md
/.angular
/.docusaurus
Loading

0 comments on commit 3c13b35

Please sign in to comment.