githubアクションhackathon 2021 - GitHubアクションを使用してGitHubページに角度アプリケーションをホストする
8061 ワード
マイワークフロー
このワークフローを作成して、角度12GitHub Pages .
提出カテゴリ
DIY展開
YAMLファイル
name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test:headless
- name: Build
run: npm run build:prod
- name: Deploy
if: success()
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/angular-github-actions
enable_jekyll: true
コードへのリンク
rodrigokamada / angular-github-actions
角度13を使用して構築されたアプリケーションの例では、githubのページをgithubのアクションを使ってホストしています.
アングルgithubアクション
アプリケーションの例Angular 13でホストされてGitHub Pages 使用GitHub Actions .
このチュートリアルはblog ポルトガル語と英語で.
必要条件
起動する前に、ツールをインストールして設定する必要があります.
アカウントの作成と設定
1 .アカウントを作成しましょう.アクセスサイトhttps://github.com/ ボタンをクリックします.
2 .フィールドのユーザー名、電子メールアドレス、パスワードを入力し、ボタンをクリックしてチャレンジを解決し、ボタンをクリックしてアカウントを作成します.
3 .リポジトリを作成しましょう.アバターでメニューをクリックして、リポジトリのメニューをクリックします.
ボタンをクリックします.
5 .フィールドリポジトリ名を入力し、クリックします.
View on GitHub
追加情報
このチュートリアルはblog ポルトガル語と英語で.
Reference
この問題について(githubアクションhackathon 2021 - GitHubアクションを使用してGitHubページに角度アプリケーションをホストする), 我々は、より多くの情報をここで見つけました https://dev.to/rodrigokamada/github-actions-hackathon-2021-hosting-an-angular-application-on-github-pages-using-github-actions-139kテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol