-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
180 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
permissions: | ||
id-token: write | ||
packages: write | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
uses: ./.github/workflows/publish-ghp.yml | ||
secrets: inherit | ||
with: | ||
environment: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
id-token: write | ||
packages: write | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
uses: ./.github/workflows/publish-ghp.yml | ||
secrets: inherit | ||
with: | ||
environment: prd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
environment: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
run: | ||
name: Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repos | ||
uses: actions/checkout@v4 | ||
- name: Setup node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
registry-url: https://npm.pkg.github.com/ | ||
always-auth: true | ||
- name: Update package.json | ||
run: npm version ${{vars.BUILD_VERSION}}-${{inputs.environment}}.${{github.run_number}} --no-git-tag-version | ||
- name: Restore source | ||
run: npm ci | ||
- name: Audit source | ||
run: npm audit --omit=dev | ||
- name: Build source | ||
run: npm run build | ||
- name: Create .npmrc | ||
run: | | ||
touch .npmrc | ||
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" >> .npmrc | ||
echo "@karamem0:registry=https://npm.pkg.github.com/" >> .npmrc | ||
- name: Publish source | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: workflow_call | ||
|
||
jobs: | ||
run: | ||
name: Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repos | ||
uses: actions/checkout@v4 | ||
- name: Setup node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
registry-url: https://registry.npmjs.org/ | ||
always-auth: true | ||
- name: Update package.json | ||
run: npm version ${{vars.BUILD_VERSION}} --no-git-tag-version | ||
- name: Restore source | ||
run: npm ci | ||
- name: Audit source | ||
run: npm audit --omit=dev | ||
- name: Build source | ||
run: npm run build | ||
- name: Publish source | ||
run: npm publish --provenance --access=public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
on: workflow_call | ||
|
||
jobs: | ||
run: | ||
name: Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
uses: ./.github/workflows/publish-npm.yml | ||
secrets: inherit | ||
release: | ||
name: Release | ||
uses: ./.github/workflows/release.yml | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: "ハンズオンで学ぶ C# プログラミング" | ||
emoji: "" | ||
type: "tech" | ||
topics: [] | ||
published: false | ||
--- | ||
|
||
# はじめに | ||
|
||
皆さんこんにちは!今日は、C# プログラミングの基本を学ぶハンズオン記事をお届けします。C# は、Microsoft が開発した強力なプログラミング言語であり、特に Windows アプリケーションやゲーム開発でよく使われます。 | ||
|
||
# 準備 | ||
|
||
まず、開発環境を整えましょう。Visual Studio をインストールし、C# プロジェクトを新規作成します。 | ||
|
||
1. Visual Studio を開く | ||
2. 新規プロジェクトを選択 | ||
3. C# コンソールアプリケーションを選ぶ | ||
|
||
# 基本の Hello World | ||
|
||
C# の基本を学ぶために、まずは **Hello World** プログラムを作成します。以下のコードを入力してみてください。 | ||
|
||
```csharp | ||
using System; | ||
|
||
class Program | ||
{ | ||
static void Main() | ||
{ | ||
Console.WriteLine("Hello, World!"); | ||
} | ||
} | ||
``` | ||
|
||
このコードを実行すると、コンソールに `Hello, World!` と表示されます。 | ||
|
||
# まとめ | ||
|
||
これが、C# プログラミングの始めの一歩です。この後も、変数や条件分岐、ループ構造などを学んでいきますので、お楽しみに!次回の記事では、もう少し複雑なプログラムに挑戦してみましょう。 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.