Skip to content

Commit

Permalink
Corrigindo configuração do actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreeluis committed Nov 15, 2023
2 parents 010d450 + d2ed1ed commit 310c1fc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 26 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,30 @@ concurrency:
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
deploy-src:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/checkout@v2
- name: Move docs to src
run: mv docs src/
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-artifact@v2
with:
# Upload entire repository
path: './src'
name: src
path: src
deploy-pages:
needs: deploy-src
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: src
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src
8 changes: 4 additions & 4 deletions index.html → src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" />
<link rel="stylesheet" href="src/assets/css/style.css">
<link rel="stylesheet" href="assets/css/style.css">

<title>Arduino HUB</title>
</head>
<body>
<header>
<a href="index.html" class="logo"> Arduino HUB </a>
<a href="" class="logo"> Arduino HUB </a>

<!-- Hamburger icon -->
<input class="side-menu" type="checkbox" id="side-menu" />
Expand Down Expand Up @@ -51,9 +51,9 @@ <h3>Sobre</h3>

<section>
<h3>Links</h3>
<li>Documentação do Projeto: <a href="docs/index.html">TI DOCS</a></li>
<li>Documentação do Projeto: <a href="../docs/index.html">TI DOCS</a></li>
</section>
</footer>
</body>
<script src="src/assets/js/index.js"></script>
<script src="assets/js/index.js"></script>
</html>
10 changes: 5 additions & 5 deletions login.html → src/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" />
<link rel="stylesheet" href="src/assets/css/style.css">
<link rel="stylesheet" href="src/assets/css/login.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/login.css">

<title>Arduino HUB</title>
</head>
Expand All @@ -24,7 +24,7 @@
<li><a href="#">Projetos</a></li>
<li><a href="#">Ferramentas</a></li>
<li><a href="#">Fórum</a></li>
<li class="login"><a href="login.html">Login</a></li>
<li class="login"><a href="">Login</a></li>
<li class="my-account dropdown-menu">
<a><i class="fas fa-user"></i></a>

Expand Down Expand Up @@ -75,6 +75,6 @@ <h3>Links</h3>
</section>
</footer>
</body>
<script src="src/assets/js/login.js"></script>
<script src="src/assets/js/index.js"></script>
<script src="assets/js/login.js"></script>
<script src="assets/js/index.js"></script>
</html>
8 changes: 4 additions & 4 deletions register.html → src/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" />
<link rel="stylesheet" href="src/assets/css/style.css">
<link rel="stylesheet" href="src/assets/css/login.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/login.css">

<title>Arduino HUB</title>
</head>
Expand Down Expand Up @@ -90,6 +90,6 @@ <h3>Links</h3>
</section>
</footer>
</body>
<script src="src/assets/js/login.js"></script>
<script src="src/assets/js/index.js"></script>
<script src="assets/js/login.js"></script>
<script src="assets/js/index.js"></script>
</html>

0 comments on commit 310c1fc

Please sign in to comment.