From 6db67ae28bc996f8f42f0200d61d1fada57d77cb Mon Sep 17 00:00:00 2001 From: Frank419 Date: Thu, 29 Aug 2024 08:03:47 +0800 Subject: [PATCH] I must say that I'm not familiar with GitHub workflows... --- .../workflows}/add-zip-to-release.yml | 0 {workflows => .github/workflows}/cpcs.yml | 0 .github/workflows/main.yml | 30 ------------------- .gitignore | 3 +- 4 files changed, 2 insertions(+), 31 deletions(-) rename {workflows => .github/workflows}/add-zip-to-release.yml (100%) rename {workflows => .github/workflows}/cpcs.yml (100%) delete mode 100644 .github/workflows/main.yml diff --git a/workflows/add-zip-to-release.yml b/.github/workflows/add-zip-to-release.yml similarity index 100% rename from workflows/add-zip-to-release.yml rename to .github/workflows/add-zip-to-release.yml diff --git a/workflows/cpcs.yml b/.github/workflows/cpcs.yml similarity index 100% rename from workflows/cpcs.yml rename to .github/workflows/cpcs.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index afd89e0..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Generate Installable Plugin or Theme, and Upload as Release Asset -on: - release: - types: [published] -jobs: - build: - name: Upload Release Asset - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: setup git config - run: | - git config user.name "GitHub Actions Bot" - git config user.email "<>" - - name: Create artifact - run : | - git archive -o ${{ github.event.repository.name }}-${{ github.ref_name }}.zip --prefix ${{ github.event.repository.name }}/ HEAD - ls - - name: Upload artifact - uses: actions/upload-artifact@v2 - with: - name: ${{ github.event.repository.name }}-${{ github.ref_name }} - path: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip - - name: Upload to release - uses: JasonEtco/upload-to-release@master - with: - args: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip application/zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 52c30c1..c4fd51a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .git export-ignore -.gitignore export-ignore \ No newline at end of file +.gitignore export-ignore +.github export-ignore \ No newline at end of file