diff --git a/.github/workflows/deployonly.yml b/.github/workflows/deployonly.yml index fc07b7d..b155cc5 100644 --- a/.github/workflows/deployonly.yml +++ b/.github/workflows/deployonly.yml @@ -25,12 +25,9 @@ jobs: github-token: ${{ github.token }} run-id: ${{ github.event.workflow_run.id }} - - name: List directory contents + - name: Run surge list run: | - pwd - ls -lh - ls * - du -sh * + surge list - name: Manage Surge deployment id: preview_step diff --git a/.github/workflows/surgelist.yml b/.github/workflows/surgelist.yml new file mode 100644 index 0000000..09d4f9d --- /dev/null +++ b/.github/workflows/surgelist.yml @@ -0,0 +1,17 @@ +name: Surge List + +on: [workflow_dispatch] + +jobs: + list: + runs-on: ubuntu-latest + + steps: + - name: Install Surge.sh + uses: actions/setup-node@v4 + + - run: npm install -g surge + + - run: surge list + env: + SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}