Skip to content

kandangit is testing out GitHub Actions 🚀 #40

kandangit is testing out GitHub Actions 🚀

kandangit is testing out GitHub Actions 🚀 #40

name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push
jobs:
Expressions-Actions:
runs-on: ubuntu-latest
steps:
- name: Només si el push que dispara el workflow és a la branca principal.
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: echo "PUSH A LA BRANCA MASTER"
- name: Instal·la unzip
run: sudo apt-get install unzip
- name: Checkout
uses: actions/checkout@v4
- name: Upload file
uses: actions/upload-artifact@v4
with:
name: secret.zip
path: secret.zip
- name: Download file
uses: actions/download-artifact@v4
with:
name: secret.zip
- name: Descomprimeix el zip.
run: unzip -P ${{ secrets.ZIP_PASS }} secret.zip