fix gh actions

pull/5370/head
yann300 4 months ago
parent c504cbf8b3
commit 9730d2a4ac
  1. 5
      apps/remix-ide/ci/deploy_from_travis_remix-alpha.sh
  2. 5
      apps/remix-ide/ci/deploy_from_travis_remix-beta.sh
  3. 5
      apps/remix-ide/ci/deploy_from_travis_remix-live.sh
  4. 43
      apps/remix-ide/ci/gh-actions-deploy.yml

@ -5,6 +5,11 @@ SHA=`git rev-parse --short --verify HEAD`
cd dist/apps/remix-ide cd dist/apps/remix-ide
# this gh action is used to deploy the build to the gh pages
mkdir dist/apps/remix-ide/.github
mkdir dist/apps/remix-ide/.github/workflows
cp apps/remix-ide/ci/gh-actions-deploy.yml dist/apps/remix-ide/.github/workflows
git init git init
git checkout -b gh-pages git checkout -b gh-pages
git config user.name "$COMMIT_AUTHOR" git config user.name "$COMMIT_AUTHOR"

@ -5,6 +5,11 @@ SHA=`git rev-parse --short --verify HEAD`
cd dist/apps/remix-ide cd dist/apps/remix-ide
# this gh action is used to deploy the build to the gh pages
mkdir dist/apps/remix-ide/.github
mkdir dist/apps/remix-ide/.github/workflows
cp apps/remix-ide/ci/gh-actions-deploy.yml dist/apps/remix-ide/.github/workflows
git init git init
git checkout -b gh-pages git checkout -b gh-pages
git config user.name "$COMMIT_AUTHOR" git config user.name "$COMMIT_AUTHOR"

@ -5,6 +5,11 @@ SHA=`git rev-parse --short --verify HEAD`
cd dist/apps/remix-ide cd dist/apps/remix-ide
# this gh action is used to deploy the build to the gh pages
mkdir dist/apps/remix-ide/.github
mkdir dist/apps/remix-ide/.github/workflows
cp apps/remix-ide/ci/gh-actions-deploy.yml dist/apps/remix-ide/.github/workflows/gh-actions-deploy.yml
git init git init
git checkout -b gh-pages git checkout -b gh-pages
git config user.name "$COMMIT_AUTHOR" git config user.name "$COMMIT_AUTHOR"

@ -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: ["gh-pages"]
# 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@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading…
Cancel
Save