Skip to content

Commit 7baffa3

Browse files
committed
Merge branch 'develop'
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2 parents f3e4ac3 + 66b4fcb commit 7baffa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1411
-1058
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ jobs:
108108
needs: build
109109
if: ${{ github.ref == 'refs/heads/develop' }}
110110
runs-on: ubuntu-latest
111+
permissions:
112+
id-token: write
113+
contents: read
111114
steps:
112115
- name: Checkout
113116
uses: actions/checkout@v4
@@ -122,9 +125,18 @@ jobs:
122125
run: |
123126
cp ./server/config.json ./dist/config.json
124127
128+
- uses: aws-actions/configure-aws-credentials@v4
129+
with:
130+
aws-region: us-east-1
131+
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
132+
125133
- name: Deploy to Host
126-
env:
127-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
128-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
129-
run: |
130-
npm run deploy:host:dev
134+
uses: reggionick/s3-deploy@v4
135+
with:
136+
folder: dist
137+
bucket: ${{ secrets.DEV_S3_BUCKET_NAME }}
138+
bucket-region: us-east-1
139+
dist-id: ${{ secrets.DEV_CF_DISTRIBUTION_ID }}
140+
delete-removed: true
141+
no-cache: true
142+
private: true

.github/workflows/release.yml

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ jobs:
4242
- name: Create Artifact
4343
run: |
4444
cd ./dist
45-
zip -r fluidd.zip ./
46-
cd ..
45+
zip -r ../fluidd.zip ./
4746
4847
- name: Get version from tag
4948
id: tag_name
@@ -78,25 +77,56 @@ jobs:
7877
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7978
with:
8079
upload_url: ${{ steps.create_release.outputs.upload_url }}
81-
asset_path: ./dist/fluidd.zip
80+
asset_path: ./fluidd.zip
8281
asset_name: fluidd.zip
8382
asset_content_type: application/zip
8483

84+
- name: Upload Artifact
85+
uses: actions/upload-artifact@v4
86+
with:
87+
name: fluidd-${{ github.sha }}.zip
88+
path: ./dist
89+
8590
- name: Publish Release
8691
uses: eregon/publish-release@v1
8792
env:
8893
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8994
with:
9095
release_id: ${{ steps.create_release.outputs.id }}
9196

97+
publish-web:
98+
name: Deploy to Host
99+
needs: build
100+
runs-on: ubuntu-latest
101+
permissions:
102+
id-token: write
103+
contents: read
104+
steps:
105+
- name: Checkout
106+
uses: actions/checkout@v4
107+
108+
- name: Download fluidd.zip
109+
uses: actions/download-artifact@v4
110+
with:
111+
name: fluidd-${{ github.sha }}.zip
112+
path: ./dist
113+
92114
- name: Prepare Deploy
93115
run: |
94-
rm ./dist/fluidd.zip
95116
cp ./server/config.json ./dist/config.json
96117
118+
- uses: aws-actions/configure-aws-credentials@v4
119+
with:
120+
aws-region: us-east-1
121+
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
122+
97123
- name: Deploy to Host
98-
env:
99-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
100-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
101-
run: |
102-
npm run deploy:host
124+
uses: reggionick/s3-deploy@v4
125+
with:
126+
folder: dist
127+
bucket: ${{ secrets.S3_BUCKET_NAME }}
128+
bucket-region: us-east-1
129+
dist-id: ${{ secrets.CF_DISTRIBUTION_ID }}
130+
delete-removed: true
131+
no-cache: true
132+
private: true

docs/customize/hide_outputs.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
layout: default
3-
title: Hide macros, output pins and fans
3+
title: Hide macros, output pins, fans and sensors
44
parent: Customize
55
nav_order: 3
66
permalink: /customize/hide
77
---
88

9-
# Hide macros, output pins and fans
9+
# Hide macros, output pins, fans and sensors
1010
{: .no_toc }
1111

1212
---
1313

14-
Fluidd allows you to hide macros, output pins and fans by prefixing them
15-
with an underscore (`_`).
14+
Fluidd allows you to hide macros, output pins, fans and sensors by prefixing
15+
them with an underscore (`_`).
1616

1717
By doing this - you're removing them from Fluidd. This can be handy in
1818
situations where you have a large quantiy of macros, or whereby you have an
@@ -31,6 +31,11 @@ gcode:
3131
pin: z:P1.30
3232
```
3333
34+
```yaml
35+
[temperature_sensor _MCU]
36+
sensor_type: MCU
37+
```
38+
3439
Macros can also be hidden directly from the Fluidd settings by toggling their
3540
visibility, in order to not change their name:
3641
![screenshot](/assets/images/macro_visibility.png)

0 commit comments

Comments
 (0)