1.0.5 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release" | |
on: | |
release: | |
types: | |
- "published" | |
permissions: {} | |
jobs: | |
release: | |
name: "Release" | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: write | |
steps: | |
# 1. Checkout le code source | |
- name: "Checkout the repository" | |
uses: "actions/[email protected]" | |
# 2. Configurer Node.js | |
- name: "Set up Node.js" | |
uses: "actions/setup-node@v4" | |
with: | |
node-version: 16 # Ajuste la version si nécessaire | |
# 3. Installer les dépendances | |
- name: "Install dependencies" | |
run: npm install | |
# 4. Compiler le code | |
- name: "Build the project" | |
run: npm run build | |
# 5. Créer l'archive ZIP | |
- name: "ZIP the integration directory" | |
shell: "bash" | |
run: | | |
cd "${{ github.workspace }}/custom_components/linus_dashboard" | |
zip Linus-Dashboard.zip -r ./ | |
# 6. Télécharger l'archive ZIP dans la release | |
- name: "Upload the ZIP file to the release" | |
uses: "softprops/[email protected]" | |
with: | |
files: ${{ github.workspace }}/custom_components/linus_dashboard/Linus-Dashboard.zip |