Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinMirMohammadi committed Nov 4, 2024
2 parents b0e211d + 936cf39 commit aedf0b6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# 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:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4

- name: 📂 Sync files
uses: Dylan700/sftp-upload-action@latest
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
uploads: |
./web/ => ./carbon/
ignore: |
*.git
*/**/*git*
*/**/*.vscode*
7 changes: 6 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
<meta property="twitter:title" content="Carbon Aware Computing">
<meta property="twitter:description" content="Execute computing tasks when the grid is powered by renewable energy. Provide developers with hassle free, easy to use, ready to run tools for Carbon Aware Computing.">
<meta property="twitter:image" content="https://www.carbon-aware-computing.com/assets/images/hero/time-shifting.png">

<script type="module"
src="https://cdn.jsdelivr.net/npm/website-carbon-meter-badge/bundle/website-carbon-meter-badge.js">
</script>
<!--====== Favicon Icon ======-->
<link
rel="shortcut icon"
Expand Down Expand Up @@ -652,6 +654,9 @@ <h5>Sponsorship</h5>
<li>
<a href="https://www.bluehands.de/agb/" target="_blank">Terms of service (de)</a>
</li>
<li>
<carbon-meter-badge location="de" appearance="compact" ></carbon-meter-badge>
</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit aedf0b6

Please sign in to comment.