From 4cd02f0789380d1be6c26771e89727beee1e7300 Mon Sep 17 00:00:00 2001 From: Alexander Gomzyakov Date: Wed, 11 Oct 2023 21:06:37 +0500 Subject: [PATCH 1/4] Create static.yml --- .github/workflows/static.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..6ee98fb --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 From 05d91507da7a3dce7adb186a8f99b28ad8e13b5b Mon Sep 17 00:00:00 2001 From: Alexander Gomzyakov Date: Wed, 11 Oct 2023 21:09:19 +0500 Subject: [PATCH 2/4] Update .github/workflows/static.yml --- .github/workflows/static.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 6ee98fb..7392ac4 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -5,6 +5,9 @@ on: # Runs on pushes targeting the default branch push: branches: ["main"] + # TODO Remove after check + pull_request: + branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 2cd0f21129d3b381e723cd77565dc504b2b1bcf3 Mon Sep 17 00:00:00 2001 From: Alexander Gomzyakov Date: Wed, 11 Oct 2023 21:27:45 +0500 Subject: [PATCH 3/4] Update .github/workflows/static.yml --- .github/workflows/static.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 7392ac4..bc52af7 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -36,6 +36,13 @@ jobs: uses: actions/checkout@v3 - name: Setup Pages uses: actions/configure-pages@v3 + + - name: LA + run: ls + + - name: Create file + run: echo "This is the File name file3" > file3.txt + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: From 5e1f97d93606805534b8c2532352c1e5c31a45b1 Mon Sep 17 00:00:00 2001 From: gomzyakov Date: Thu, 12 Oct 2023 17:37:43 +0500 Subject: [PATCH 4/4] Update deploy.yml --- .github/workflows/{static.yml => deploy.yml} | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) rename .github/workflows/{static.yml => deploy.yml} (86%) diff --git a/.github/workflows/static.yml b/.github/workflows/deploy.yml similarity index 86% rename from .github/workflows/static.yml rename to .github/workflows/deploy.yml index bc52af7..7fcb40f 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/deploy.yml @@ -34,11 +34,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Setup Pages uses: actions/configure-pages@v3 - - name: LA - run: ls + - name: Setup PHP with PECL extension + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + extensions: mbstring + + - name: Show PHP version + run: php -v - name: Create file run: echo "This is the File name file3" > file3.txt @@ -48,6 +55,7 @@ jobs: with: # Upload entire repository path: '.' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2