165 検索結果 "runs-on"
GitHub Actions / ユース ケースと例 / デプロイ /
Azure App Service への Python のデプロイ
this to the Python version to use
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
GitHub Actions / ユース ケースと例 / デプロイ /
Azure App Service に Docker をデプロイする
branches:
- main
permissions:
contents: 'read'
packages: 'write'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker
GitHub Actions / ユース ケースと例 / デプロイ /
Azure App Service への .NET のデプロイ
to the .NET Core version to use
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
GitHub Actions / ユース ケースと例 / デプロイ /
Azure App Service への PHP のデプロイ
this to the PHP version to use
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses:
GitHub Actions / ワークフローを書き込む / ワークフロー動作を選択する /
ワークフローとアクションで式を評価する
つのジョブに設定し、それを出力と fromJSON を使って次のジョブに渡します。
YAML
name: build
on: push
jobs:
job1:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
GitHub Actions / ユース ケースと例 / ビルドおよびテスト /
Xamarin アプリケーションのビルドとテスト
アプリケーションをビルドする方法の例です。
name: Build Xamarin.iOS app
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set default Xamarin
GitHub Actions / ユース ケースと例 / パッケージの公開 /
GradleでのJavaパッケージの公開
the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses:
GitHub Actions / ユース ケースと例 / プロジェクト管理 /
Issue にラベルを追加する
Label issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER"
GitHub Actions / ユース ケースと例 / ビルドおよびテスト /
.NETでのビルドとテスト
アクションを参照してください。
複数の.NETバージョンの利用
name: dotnet package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '3.1.x', '6.0.x' ]
steps:
GitHub Actions / GitHub Actions に移行する / 手動移行 /
Travis CI から GitHub Actions への移行
matrix.env }} を使用してカスタム変数を参照します。
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- node-version: '14.x'
site: "prod"