You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actions are now repeating themselves no enable verification when failed (if it happened on daily check or on push).
But ideally, "on push" action wouldn't need to re-verify the repositories, as it should be mainly frontend changes.
Ideally actions would be differentiated at:
DailyCheck: would make sure it is daily linted
Deploy: would run after DailyCheck and on push to main
This is how it suppose to work:
DailyCheck action, lints the repositories and save frontend.json file as an artifact
This artifact stays available for both on push to main or, to be deployed right after this job ends:
name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_run:
workflows: ["Verify Repo Health Daily", "Lint And Deploy On Push To Main"]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Gives access to repository
uses: actions/checkout@v2
- name: Setup Node version
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install Frontend
run: cd frontend && npm install
- name: Copy artifact to frontend
uses: actions/download-artifact@v2
with:
name: frontend-json
path: ./frontend/public
- name: Build Vue
run: cd frontend && npm run build
- name: Deploy Vue Site
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/dist
publish_branch: gh-pages
user_name: 'OSS Sauce Bot'
user_email: '[email protected]'
commit_message: ${{ github.event.head_commit.message }}
```
Right now the artifacts is created, but the Deploy action is not able to find it for downloading when the jobs are on separated files.
I tried several times and was unable to find a resolution, so this is why this ticket exists.
No description provided.
The text was updated successfully, but these errors were encountered: